*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #b8966a;
  --dark: #2c2c2c;
  --cream: #fdf8f2;
  --light-gold: #e8d5b7;
  --text: #444;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', 'Noto Serif KR', serif;
  background: var(--cream);
  color: var(--text);
  font-size: 18px;
  line-height: 1.85;
}

.hidden { display: none !important; }

/* ── Language Bar ──────────────────────────── */
.lang-bar {
  position: fixed; top: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  padding: 8px 18px;
  display: flex; gap: 8px; align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-radius: 0 0 0 10px;
  font-size: 14px;
}
.lang-sep { color: #ccc; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  color: #aaa; font-size: 14px; font-family: inherit;
  padding: 2px 4px; transition: color 0.2s;
  border-bottom: 2px solid transparent;
}
.lang-btn.active {
  color: var(--gold); font-weight: 600;
  border-bottom-color: var(--gold);
}

/* ── Hero ──────────────────────────────────── */
.hero {
  min-height: 65vh;
  background: linear-gradient(135deg, #1e1e1e 0%, #4a3728 50%, #1e1e1e 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px 70px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8966a' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.subtitle {
  color: var(--light-gold); font-size: 1.15rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 24px;
  line-height: 1.7;
}
/* Korean subtitle: no uppercase transform, larger, more readable */
.ko.subtitle {
  text-transform: none; letter-spacing: 0.02em;
  font-size: 1.25rem; font-weight: 700; line-height: 1.9;
}
.couple-names {
  font-size: clamp(3rem, 9vw, 5.5rem);
  color: var(--white); font-weight: 600; font-style: italic;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(184,150,106,0.4);
}
.tagline {
  color: var(--light-gold); font-size: 1.35rem;
  font-style: italic; font-weight: 600; line-height: 1.7;
}
.ko.tagline {
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: 0.01em; line-height: 2;
}

/* ── Details Cards ─────────────────────────── */
.details {
  display: flex; flex-wrap: wrap; gap: 20px;
  max-width: 900px; margin: 60px auto; padding: 0 24px;
  justify-content: center;
}
.detail-card {
  background: var(--white);
  border: 1px solid var(--light-gold);
  border-radius: 14px;
  padding: 30px 36px;
  text-align: center;
  flex: 1; min-width: 230px; max-width: 280px;
  box-shadow: 0 4px 24px rgba(184,150,106,0.1);
}
.detail-icon { font-size: 2.2rem; margin-bottom: 14px; }
.detail-card h3 { color: var(--gold); font-size: 1.3rem; margin-bottom: 10px; font-weight: 700; }
.detail-card p { font-size: 1.05rem; color: #555; font-weight: 500; }
.venue-area { font-size: 0.95rem !important; color: #999 !important; margin-top: 4px; }
.detail-card-link {
  cursor: pointer; text-decoration: none; color: inherit;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  display: block;
}
.detail-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(184,150,106,0.22);
  border-color: var(--gold);
}
.card-action-hint {
  font-size: 0.82rem !important; color: var(--gold) !important;
  font-style: italic; margin-top: 10px !important; font-weight: 600 !important;
}

/* ── Section Titles ────────────────────────── */
.section-title {
  text-align: center; font-size: clamp(2rem, 4.5vw, 2.8rem);
  color: var(--dark); font-weight: 600; font-style: italic;
  margin-bottom: 8px;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 2px;
  background: var(--gold); margin: 14px auto 0;
}

/* ── Carousel ──────────────────────────────── */
.carousel-section { padding: 70px 24px; background: var(--white); }
.carousel-container {
  position: relative; max-width: 720px; margin: 44px auto 0;
  overflow: hidden;
}
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.carousel-slide {
  min-width: 100%; padding-bottom: 24px;
  display: flex; flex-direction: column; align-items: center;
}
.carousel-slide img {
  width: 100%; max-height: 600px; object-fit: contain;
  border-radius: 10px; cursor: pointer;
  background: #1a1a1a;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}
.carousel-slide img:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.carousel-btn {
  position: absolute; top: 40%; transform: translateY(-50%);
  background: rgba(184,150,106,0.88); color: var(--white);
  border: none; width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.6rem; cursor: pointer; z-index: 10;
  transition: background 0.2s, transform 0.1s;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.carousel-btn:hover { background: var(--gold); transform: translateY(-50%) scale(1.05); }
.carousel-btn:active { transform: translateY(-50%) scale(0.97); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--light-gold); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s; padding: 0;
}
.dot.active { background: var(--gold); transform: scale(1.2); }

/* ── Photo Comments ────────────────────────── */
.slide-comments { width: 100%; padding: 24px 0 0; }
.comments-heading {
  font-size: 1rem; color: #888; font-weight: 400;
  font-style: italic; margin-bottom: 14px; text-align: center;
}
.comments-list { min-height: 10px; margin-bottom: 14px; }
.comment-item {
  background: var(--cream); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 10px; font-size: 1rem;
  border-left: 3px solid var(--light-gold);
}
.comment-item .comment-author { color: var(--gold); font-weight: 700; }
.comment-form { display: flex; flex-direction: column; gap: 10px; }
.c-input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--light-gold);
  border-radius: 8px; font-family: inherit; font-size: 0.95rem;
  background: var(--white); resize: vertical;
  transition: border-color 0.2s;
}
.c-input:focus { outline: none; border-color: var(--gold); }
.btn-comment {
  align-self: flex-end; padding: 9px 22px;
  background: var(--gold); color: var(--white); border: none;
  border-radius: 8px; cursor: pointer; font-family: inherit;
  font-size: 0.92rem; transition: background 0.2s;
}
.btn-comment:hover { background: #a07a50; }
.btn-comment:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Calendar Picker ───────────────────────── */
.cal-picker {
  display: none; position: fixed; inset: 0; z-index: 3000;
  align-items: flex-end; justify-content: center;
}
.cal-picker.open { display: flex; }
.cal-picker-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
}
.cal-picker-menu {
  position: relative; background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 36px;
  width: 100%; max-width: 480px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  animation: slideUp 0.22s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cal-picker-title {
  text-align: center; font-size: 1rem; color: #999;
  font-style: italic; margin-bottom: 20px;
}
.cal-option {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 12px;
  text-decoration: none; color: var(--dark);
  font-size: 1.1rem; font-weight: 600;
  transition: background 0.15s;
  margin-bottom: 10px;
  border: 1px solid var(--light-gold);
  width: 100%; background: var(--white);
  cursor: pointer; font-family: inherit; text-align: left;
}
.cal-option:hover { background: var(--cream); }
.cal-option-icon { font-size: 1.5rem; }
.cal-download-hint {
  font-size: 0.82rem; color: #999; font-style: italic;
  text-align: center; margin-top: 4px; margin-bottom: 8px;
}
.cal-cancel {
  width: 100%; padding: 14px; margin-top: 6px;
  background: none; border: none; cursor: pointer;
  color: #999; font-family: inherit; font-size: 1rem;
  border-radius: 10px; transition: color 0.15s;
}
.cal-cancel:hover { color: var(--dark); }

/* ── Lightbox ──────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.92);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: row;
  width: 92vw; max-width: 1100px;
  max-height: 90vh;
  background: #1a1a1a; border-radius: 12px;
  overflow: hidden; box-shadow: 0 0 80px rgba(0,0,0,0.8);
  animation: fadeIn 0.2s ease;
}
.lightbox-photo {
  flex: 0 0 60%; width: 60%; max-height: 90vh;
  object-fit: contain; background: #111; display: block;
}
.lightbox-comment-panel {
  flex: 0 0 40%; width: 40%;
  display: flex; flex-direction: column;
  padding: 24px 20px; overflow-y: auto;
  background: #1e1e1e; border-left: 1px solid #333;
}
.lightbox-comments-heading {
  color: var(--light-gold); font-size: 1.15rem;
  font-weight: 600; font-style: italic;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid #333;
}
.lightbox-comment-panel .comments-list {
  flex: 1; overflow-y: auto; margin-bottom: 14px; min-height: 40px;
}
.lightbox-comment-panel .comment-item {
  background: #2a2a2a; border-left-color: #555;
  color: #ccc; margin-bottom: 8px;
}
.lightbox-comment-panel .comment-author { color: var(--gold); }
.lightbox-comment-panel .c-input {
  background: #2a2a2a; border-color: #444; color: #eee;
}
.lightbox-comment-panel .c-input:focus { border-color: var(--gold); }
.lightbox-comment-panel .c-input::placeholder { color: #666; }
.lightbox-close {
  position: absolute; top: 12px; right: 16px; z-index: 10;
  background: none; border: none;
  color: rgba(255,255,255,0.7); font-size: 2.2rem;
  cursor: pointer; line-height: 1; transition: color 0.2s;
  user-select: none;
}
.lightbox-close:hover { color: var(--gold); }

/* Mobile lightbox: stack vertically */
@media (max-width: 700px) {
  .lightbox-inner {
    flex-direction: column; width: 100vw; max-width: 100vw;
    height: 100vh; max-height: 100vh; border-radius: 0;
  }
  .lightbox-photo { flex: 0 0 50%; width: 100%; max-height: 50vh; }
  .lightbox-comment-panel {
    flex: 1; width: 100%; border-left: none;
    border-top: 1px solid #333;
  }
}

/* ── RSVP ──────────────────────────────────── */
.rsvp-section { padding: 70px 24px; max-width: 620px; margin: 0 auto; }
.rsvp-subtitle {
  text-align: center; color: #888; margin-bottom: 40px;
  font-style: italic; font-size: 1.1rem; font-weight: 600;
}
.rsvp-form {
  background: var(--white); border: 1px solid var(--light-gold);
  border-radius: 18px; padding: 44px;
  box-shadow: 0 4px 36px rgba(184,150,106,0.1);
}
.form-group { margin-bottom: 28px; }
.form-group label {
  display: block; color: var(--dark);
  margin-bottom: 10px; font-size: 1.1rem; font-weight: 700;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #e0e0e0;
  border-radius: 9px; font-family: inherit; font-size: 1.05rem;
  background: var(--cream); transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white);
}
.form-group textarea { resize: vertical; }
.radio-group { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 6px; }
.radio-group label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-weight: 500; color: var(--text); font-size: 1.05rem;
}
.radio-group input[type="radio"] { accent-color: var(--gold); width: 20px; height: 20px; }
.btn-rsvp {
  width: 100%; padding: 18px; background: var(--gold); color: var(--white);
  border: none; border-radius: 11px; font-size: 1.25rem; font-family: inherit;
  cursor: pointer; transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.06em; margin-top: 8px; font-weight: 700;
}
.btn-rsvp:hover { background: #a07a50; }
.btn-rsvp:active { transform: scale(0.99); }
.btn-rsvp:disabled { opacity: 0.6; cursor: not-allowed; }
.status-msg {
  text-align: center; margin-top: 18px; font-style: italic;
  min-height: 26px; font-size: 1.1rem; transition: opacity 0.3s;
}
.status-msg.success { color: #3d7a4f; }
.status-msg.error { color: #c0392b; }

/* ── Map Links ─────────────────────────────── */
.map-link {
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid var(--light-gold);
  transition: color 0.2s, border-color 0.2s;
}
.map-link:hover { color: #a07a50; border-color: var(--gold); }
.map-link-footer {
  color: #888; text-decoration: none; font-style: normal;
  transition: color 0.2s;
}
.map-link-footer:hover { color: var(--light-gold); }

/* ── Add to Calendar ───────────────────────── */
.cal-row {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 0 20px 56px;
}
.btn-cal {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; text-decoration: none;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  border: 2px solid var(--gold); transition: background 0.2s, color 0.2s;
}
.btn-cal.gcal { background: var(--gold); color: var(--white); }
.btn-cal.gcal:hover { background: #a07a50; border-color: #a07a50; }
.btn-cal.ical { background: transparent; color: var(--gold); }
.btn-cal.ical:hover { background: var(--gold); color: var(--white); }

/* ── Gallery Grid ──────────────────────────── */
.gallery-section { padding: 70px 24px; background: var(--cream); }
.gallery-sub {
  text-align: center; color: #999; font-style: italic;
  margin-bottom: 32px; font-size: 0.95rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}
.gallery-img {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: 6px;
  cursor: pointer; transition: transform 0.2s, opacity 0.2s;
  background: var(--light-gold);
}
.gallery-img:hover { transform: scale(1.03); opacity: 0.92; }

/* ── Footer ────────────────────────────────── */
.footer {
  text-align: center; padding: 64px 24px;
  background: var(--dark); color: var(--light-gold);
}
.footer-heart { font-size: 2.2rem; margin-bottom: 16px; }
.footer p { margin-bottom: 10px; font-style: italic; font-size: 1.25rem; font-weight: 600; }
.footer-venue { color: #999; font-size: 1rem; margin-top: 12px; font-style: normal; font-weight: 400; }
.footer-date { color: #777; font-size: 0.95rem; margin-top: 4px; font-style: normal; }

/* ── Mobile ────────────────────────────────── */
@media (max-width: 600px) {
  .rsvp-form { padding: 28px 18px; }
  .detail-card { min-width: 100%; max-width: 100%; padding: 24px 20px; }
  .details { gap: 12px; }
  .carousel-btn { width: 38px; height: 38px; font-size: 1.3rem; }
  .carousel-section { padding: 50px 12px; }
  .rsvp-section { padding: 50px 12px; }
  .gallery-section { padding: 50px 12px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .kakao-share-btn { bottom: 16px; right: 12px; padding: 8px 14px; font-size: 0.85rem; }
}
