/* --- Variables --- */
:root {
  --cream: #ffffff;
  --cream-dark: #f5f5f5;
  --sage: #87a78b;
  --sage-light: #a8c4ad;
  --sage-dark: #5c7a5f;
  --blush: #e8c4c4;
  --blush-dark: #d4a5a5;
  --text: #2d2a26;
  --text-muted: #6b6560;
  --white: #ffffff;
  --shadow: rgba(45, 42, 38, 0.08);
  --shadow-strong: rgba(45, 42, 38, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-script: 'Great Vibes', 'Cormorant Garamond', cursive;
  --beige-card: #ebe4da;
  --beige-card-border: #dfd5c8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  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");
  z-index: 1000;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(135, 167, 139, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.5rem;
  max-width: 100%;
  margin: 0 auto;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--sage-dark);
}

/* --- Sections --- */
.section {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.container {
  max-width: 640px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1rem;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 5rem;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Invitation card — colorful redesign */
.invitation-card {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 3px #e8b4c0,
    0 0 0 6px #9bc9a4,
    0 0 0 9px #f0d878,
    0 0 0 12px #c4a8d8,
    0 24px 56px rgba(45, 42, 38, 0.18);
  background: linear-gradient(165deg, #fef8fa 0%, #f8f5f0 40%, #f0f5f2 100%);
}

.invitation-card-accent {
  height: 8px;
  background: linear-gradient(90deg, #e8a8b8 0%, #9bc9a4 35%, #f0d878 65%, #c4a8d8 100%);
}

.invitation-card-inner {
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.25rem);
}

.invitation-blossom {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 6.5vw, 3.5rem);
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.invitation-blossom-1 {
  background: linear-gradient(135deg, #c75b7a 0%, #e8a8b8 50%, #d47890 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #c75b7a;
}

.invitation-blossom-2 {
  background: linear-gradient(135deg, #d47890 0%, #e8a8b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d47890;
  margin-top: 0.1em;
}

.invitation-join {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 2vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5c7a5f;
  margin: 1.35rem 0 0.2rem;
  line-height: 1.5;
}

.invitation-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}

.invitation-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.invitation-dot:nth-child(1) { background: #e8a8b8; }
.invitation-dot:nth-child(2) { background: #9bc9a4; }
.invitation-dot:nth-child(3) { background: #f0d878; }

.invitation-date {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 3.8vw, 1.75rem);
  font-weight: 600;
  color: #7ab385;
  margin: 0;
  letter-spacing: 0.02em;
}

.invitation-time {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  font-weight: 500;
  color: #8a7a5c;
  margin: 0.25rem 0 0;
}

.invitation-card .hero-cta {
  margin-top: 1.75rem;
  gap: 0.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(135, 167, 139, 0.35);
}

.btn-primary:hover {
  background: var(--sage-dark);
  box-shadow: 0 6px 20px rgba(135, 167, 139, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--sage-dark);
  border: 2px solid var(--sage-light);
}

.btn-ghost:hover {
  background: rgba(135, 167, 139, 0.1);
}

/* Hero decorations */
.hero-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}

.shape-1 {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, #b8d4bc, #8fb896);
  top: 10%;
  right: -80px;
  animation-delay: 0s;
}

.shape-2 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #f0c4d0, #e8a8b8);
  bottom: 20%;
  left: -40px;
  animation-delay: -4s;
}

.shape-3 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #e8dfd4, #ddd0c4);
  bottom: 40%;
  right: 15%;
  animation-delay: -8s;
}

.shape-4 {
  width: 200px;
  height: 200px;
  background: linear-gradient(145deg, #f5d9a0, #e8c878);
  top: 50%;
  left: -60px;
  animation-delay: -2s;
}

.shape-5 {
  width: 160px;
  height: 160px;
  background: linear-gradient(225deg, #d4b8e0, #c4a0d0);
  top: 15%;
  left: 20%;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -15px) scale(1.02); }
  66% { transform: translate(-10px, 10px) scale(0.98); }
}

/* Floral decorations — colorful flowers around the hero */
.flower {
  position: absolute;
  opacity: 0.9;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.flower-1 {
  width: 76px;
  height: 76px;
  top: 12%;
  left: 6%;
  animation: float 14s ease-in-out infinite;
}

.flower-2 {
  width: 58px;
  height: 58px;
  top: 52%;
  right: 8%;
  animation: float 16s ease-in-out infinite;
  animation-delay: -5s;
}

.flower-3 {
  width: 48px;
  height: 48px;
  bottom: 22%;
  left: 14%;
  animation: float 12s ease-in-out infinite;
  animation-delay: -8s;
}

.flower-4 {
  width: 42px;
  height: 42px;
  top: 28%;
  right: 22%;
  animation: float 15s ease-in-out infinite;
  animation-delay: -3s;
}

.flower-5 {
  width: 46px;
  height: 46px;
  bottom: 35%;
  right: 8%;
  animation: float 13s ease-in-out infinite;
  animation-delay: -7s;
}

.flower-6 {
  width: 52px;
  height: 52px;
  top: 65%;
  left: 10%;
  animation: float 17s ease-in-out infinite;
  animation-delay: -1s;
}

.flower-7 {
  width: 44px;
  height: 44px;
  top: 8%;
  right: 28%;
  animation: float 11s ease-in-out infinite;
  animation-delay: -4s;
}

@media (max-width: 600px) {
  .flower-1 { left: 2%; width: 56px; height: 56px; }
  .flower-2 { right: 4%; width: 44px; height: 44px; }
  .flower-3 { left: 8%; width: 36px; height: 36px; }
  .flower-4, .flower-5, .flower-6, .flower-7 { width: 32px; height: 32px; }
}

/* --- Details --- */
.details {
  background: var(--white);
  border-radius: var(--radius-lg);
  margin: 2rem 1.5rem;
  box-shadow: 0 10px 40px var(--shadow);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.detail-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
}

.detail-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.detail-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--sage-dark);
}

.detail-value {
  font-weight: 500;
  margin: 0;
  font-size: 0.95rem;
}

.detail-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
  line-height: 1.5;
}

/* Countdown */
.countdown {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(135, 167, 139, 0.12), rgba(232, 196, 196, 0.15));
  border-radius: var(--radius);
}

.countdown-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.countdown-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--sage-dark);
  line-height: 1.2;
}

.countdown-unit {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* --- RSVP --- */
.rsvp {
  background: var(--cream-dark);
}

.rsvp-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px var(--shadow);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--sage);
}

.form-row textarea {
  resize: vertical;
  min-height: 80px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.radio-label input {
  width: auto;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem;
  font-size: 1rem;
}

.rsvp-success {
  text-align: center;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px var(--shadow);
}

.rsvp-success.hidden {
  display: none;
}

.success-icon {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

.rsvp-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sage-dark);
  margin: 0 0 0.5rem;
}

.rsvp-success p {
  color: var(--text-muted);
  margin: 0;
}

.hidden {
  display: none !important;
}

/* --- Registry --- */
.registry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.registry-card {
  display: inline-block;
  padding: 1rem 1.5rem;
  background: var(--white);
  color: var(--sage-dark);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid var(--sage-light);
  transition: background 0.2s, transform 0.15s;
}

.registry-card:hover {
  background: var(--sage-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Location --- */
.location {
  background: var(--white);
  margin: 0 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px var(--shadow);
}

.location-content {
  display: grid;
  gap: 1.5rem;
}

.location-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--sage-dark);
}

.location-info p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.map-placeholder {
  min-height: 200px;
  background: var(--cream);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.map-placeholder small {
  margin-top: 0.5rem;
  padding: 0 1rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* --- Share --- */
.share-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto 0.5rem;
}

.share-input {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-muted);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.copy-feedback {
  text-align: center;
  color: var(--sage-dark);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

.copy-feedback.hidden {
  display: none;
}

/* --- What to expect --- */
.expect {
  background: var(--cream-dark);
}

.expect-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 400px;
  margin: 0 auto;
}

.expect-list li {
  padding: 0.6rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-muted);
}

.expect-list li::before {
  content: '♥';
  position: absolute;
  left: 0;
  color: var(--blush-dark);
  font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--cream-dark);
}

.footer p {
  margin: 0.25rem 0;
}

.footer a {
  color: var(--sage-dark);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .section {
    padding: 3rem 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .rsvp-form {
    padding: 1.5rem;
  }

  .share-box {
    flex-direction: column;
  }

  .share-input {
    min-width: 100%;
  }

  #copy-btn {
    width: 100%;
  }
}

/* Floral decorations */
