/* ========================================
   돌잔치 초대장 "첫 번째 봄"
   ======================================== */

/* --- CSS Variables --- */
:root {
  --bg-primary: #FFFAF6;
  --bg-secondary: #FFF0E8;
  --color-rose: #D4A0A0;
  --color-rose-light: #E8C4C4;
  --color-gold: #C9A96E;
  --color-text: #3D3028;
  --color-text-sub: #8B7355;

  --font-title: 'Gowun Batang', serif;
  --font-body: 'Noto Sans KR', sans-serif;
  --font-handwriting: 'Gaegu', cursive;

  --max-width: 480px;
  --section-padding: 80px 24px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background-color: #f0ebe6;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.08);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Common --- */
section {
  padding: var(--section-padding);
  background-color: var(--bg-primary);
}

.section-title {
  font-family: var(--font-title);
  font-size: 20px;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 32px;
  letter-spacing: 4px;
}

.divider {
  display: block;
  width: 200px;
  margin: 24px auto;
}

.divider path {
  transition: stroke-dashoffset 1.5s ease;
}

.divider.aos-animate path,
.divider--hero path {
  stroke-dashoffset: 0 !important;
}

/* ========================================
   1. Hero
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212, 160, 160, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 240, 232, 0.7) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(201, 169, 110, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(232, 196, 196, 0.15) 0%, transparent 40%),
    var(--bg-primary);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__subtitle {
  font-family: var(--font-handwriting);
  font-size: 18px;
  color: var(--color-text-sub);
  margin-bottom: 20px;
}

.hero__name {
  font-family: var(--font-title);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 12px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.hero__hanja {
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--color-text-sub);
  letter-spacing: 6px;
  margin-bottom: 28px;
}

.hero__parents {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-sub);
  font-weight: 300;
}

.hero__parents .dot {
  margin: 0 8px;
}

.hero__parents-suffix {
  margin-left: 4px;
}

.divider--hero {
  position: relative;
  z-index: 1;
  margin-top: 32px;
}

/* --- Petal Particles (Global) --- */
.petals-global {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.petal {
  position: absolute;
  width: 20px;
  height: 28px;
  opacity: 0;
  animation: petal-fall linear infinite;
}

.petal--1 { left: 8%;  width: 18px; animation-duration: 9s;   animation-delay: 0s; }
.petal--2 { left: 22%; width: 22px; animation-duration: 11s;  animation-delay: 1.5s; }
.petal--3 { left: 40%; width: 16px; animation-duration: 8s;   animation-delay: 3s; }
.petal--4 { left: 58%; width: 24px; animation-duration: 10s;  animation-delay: 0.5s; }
.petal--5 { left: 75%; width: 18px; animation-duration: 12s;  animation-delay: 2s; }
.petal--6 { left: 32%; width: 20px; animation-duration: 9.5s; animation-delay: 4s; }
.petal--7 { left: 50%; width: 14px; animation-duration: 10.5s; animation-delay: 1s; }
.petal--8 { left: 88%; width: 16px; animation-duration: 8.5s; animation-delay: 3.5s; }

@keyframes petal-fall {
  0% {
    transform: translateY(-10%) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(50vh) rotate(180deg) translateX(20px);
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(110vh) rotate(360deg) translateX(-10px);
    opacity: 0;
  }
}

/* --- Scroll Indicator --- */
.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  bottom: calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.hero__scroll-indicator span {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--color-text-sub);
  text-transform: uppercase;
  font-weight: 300;
}

.hero__scroll-arrow {
  width: 14px;
  height: 14px;
  border-right: 1.5px solid var(--color-rose);
  border-bottom: 1.5px solid var(--color-rose);
  transform: rotate(45deg);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(8px); }
}

/* ========================================
   2. Event Info
   ======================================== */
.event-info {
  padding: 60px 24px;
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--color-gold);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.event-info__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}

.event-info__month {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-sub);
  font-weight: 400;
  letter-spacing: 2px;
}

.event-info__day-number {
  font-family: var(--font-title);
  font-size: 72px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.event-info__day-name {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-sub);
  font-weight: 300;
  letter-spacing: 2px;
}

.event-info__time {
  margin-bottom: 24px;
  border-top: 1px solid rgba(201, 169, 110, 0.2);
  padding-top: 20px;
}

.event-info__time p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-sub);
  font-weight: 300;
  line-height: 1.8;
}

.event-info__hour {
  font-family: var(--font-title);
  font-size: 18px !important;
  color: var(--color-text) !important;
  font-weight: 700 !important;
  margin-top: 4px;
}

.event-info__venue {
  border-top: 1px solid rgba(201, 169, 110, 0.2);
  padding-top: 20px;
}

.event-info__venue-name {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 4px;
}

.event-info__venue-hall {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-sub);
  font-weight: 300;
}

/* ========================================
   3. Invitation (모시는 글)
   ======================================== */
.invitation {
  background: var(--bg-secondary);
  text-align: center;
  padding: 60px 24px;
}

.invitation__text {
  font-family: var(--font-title);
  font-size: 15px;
  line-height: 2.2;
  color: var(--color-text);
  word-break: keep-all;
  padding: 8px 0;
}

.invitation__text br {
  content: '';
  display: block;
  margin: 12px 0;
}

/* ========================================
   4. Gallery
   ======================================== */
.gallery {
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.gallery .section-title {
  padding: 0 24px;
}

.gallery__swiper {
  width: 100%;
  padding: 20px 0 50px;
}

.gallery__swiper .swiper-slide {
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--color-gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.gallery__swiper .swiper-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.swiper-pagination-bullet {
  background: var(--color-rose) !important;
  opacity: 0.4 !important;
  width: 8px !important;
  height: 8px !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  background: var(--color-gold) !important;
  width: 24px !important;
  border-radius: 4px !important;
}

/* ========================================
   5. Location (오시는 길)
   ======================================== */
.location {
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
}

.location__map {
  margin-bottom: 24px;
}

.location__map-image {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 280px;
}

.root_daum_roughmap {
  border-radius: 12px;
  max-width: 100%;
}

.location__address {
  text-align: center;
  margin-bottom: 20px;
}

.location__venue-name {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.location__address-text {
  font-size: 13px;
  color: var(--color-text-sub);
  font-weight: 300;
  margin-bottom: 16px;
}

.location__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.btn--primary {
  background-color: var(--color-rose);
  color: #fff;
  flex: 1;
  max-width: 180px;
}

.btn--primary:hover {
  background-color: var(--color-gold);
  transform: scale(1.02);
}

.btn--copy {
  background-color: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 8px 20px;
  font-size: 12px;
}

.btn--copy:hover {
  background-color: var(--color-gold);
  color: #fff;
  transform: scale(1.02);
}

/* --- Accordion --- */
.accordion {
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

.accordion__header {
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion__header::-webkit-details-marker {
  display: none;
}

.accordion__header::after {
  content: '▾';
  font-size: 12px;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

details[open] .accordion__header::after {
  transform: rotate(180deg);
}

.accordion__body {
  padding: 0 20px 20px;
}

.accordion__item {
  padding: 12px 0;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 300;
}

.accordion__item strong {
  color: var(--color-gold);
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ========================================
   6. Contact (연락처)
   ======================================== */
.contact {
  background: var(--bg-secondary);
  padding: 60px 24px;
  position: relative;
  z-index: 2;
}

.contact__cards {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.contact__card {
  flex: 1;
  max-width: 180px;
  background: var(--bg-primary);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contact__role {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-text-sub);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 2px;
  font-weight: 400;
}

.contact__name {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  display: block;
  margin-bottom: 20px;
}

.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-rose);
  padding: 8px 18px;
  border: 1px solid var(--color-rose);
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact__phone:hover {
  background-color: var(--color-rose);
  color: #fff;
}

.icon-phone {
  width: 14px;
  height: 14px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 11px;
  color: var(--color-text-sub);
  font-weight: 300;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  background-color: var(--bg-primary);
}

/* ========================================
   Toast
   ======================================== */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text);
  color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  white-space: nowrap;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
