/* ===== The Garden — Clean & Elegant ===== */
:root {
  --pink: #FD00A7;
  --pink-soft: rgba(253, 0, 167, 0.15);
  --pink-glow: rgba(253, 0, 167, 0.4);
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --text-dim: #6b6b6b;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.85rem 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-soft), background 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease-soft);
}

.nav-logo:hover {
  transform: scale(1.06);
  opacity: 1;
}

.nav-logo-img {
  height: 90px;
  width: auto;
  transition: filter 0.4s var(--ease-soft);
}

.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 12px var(--pink-glow));
}

.nav-checkin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--pink);
  border-radius: 100px;
  box-shadow: 0 4px 20px var(--pink-glow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s var(--ease-soft);
  white-space: nowrap;
}

.nav-checkin-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px rgba(253, 0, 167, 0.55);
}

.nav-checkin-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ===== Hero ===== */
.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7.5rem 1.5rem 2rem;
  position: relative;
}

.hero-content {
  max-width: 640px;
}

.hero-logo {
  width: min(320px, 80vw);
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 0 50px var(--pink-glow));
  animation: logoGlow 4s ease-in-out infinite;
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}

.hero-logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 70px var(--pink-glow));
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 40px var(--pink-glow)); }
  50% { filter: drop-shadow(0 0 65px rgba(253, 0, 167, 0.55)); }
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 100px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}

.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 4px 28px var(--pink-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(253, 0, 167, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: var(--pink-soft);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(253, 0, 167, 0.15);
}

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

.btn-full {
  width: 100%;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Sections ===== */
.section {
  padding: 3rem 1.5rem;
}

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

.section-label {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* ===== About ===== */
.about-content {
  text-align: center;
}

.about-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-content p:last-child {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 400;
}

/* ===== Verses ===== */
.verses-section {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  position: relative;
  perspective: 1200px;
}

.verses-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--pink), transparent);
  opacity: 0.22;
  transform: translateX(-50%);
  pointer-events: none;
}

.verse-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease-out), border-color 0.4s var(--ease-soft), box-shadow 0.55s var(--ease-out);
  overflow: hidden;
  will-change: transform;
}

.verse-card::before {
  content: '“';
  position: absolute;
  top: -0.35rem;
  left: 0.85rem;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--pink);
  opacity: 0.16;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.45s var(--ease-out);
  transform: translateZ(20px);
}

.verse-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, transparent 45%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
  opacity: 0.7;
}

.verse-card:hover {
  border-color: rgba(253, 0, 167, 0.4);
  transform: translateY(-10px) rotateX(4deg) scale(1.015);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.45),
    0 10px 25px rgba(253, 0, 167, 0.15),
    0 0 40px rgba(253, 0, 167, 0.1);
}

.verse-card:hover::before {
  opacity: 0.38;
  transform: translateZ(30px) scale(1.1);
}

.verse-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  transform: translateZ(12px);
}

.verse-ref {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  position: relative;
  z-index: 1;
  padding-top: 0.35rem;
  transform: translateZ(8px);
}

.verse-ref::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--pink);
  margin: 0 auto 0.5rem;
  opacity: 0.6;
}

.verse-card-featured {
  background: linear-gradient(160deg, rgba(253, 0, 167, 0.1) 0%, var(--bg-card) 55%);
  border-color: rgba(253, 0, 167, 0.28);
  padding: 2rem 1.75rem 1.75rem;
}

.verse-card-featured .verse-text {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
}

.verse-card-featured:hover {
  border-color: rgba(253, 0, 167, 0.55);
  transform: translateY(-12px) rotateX(5deg) scale(1.02);
  box-shadow:
    0 28px 55px rgba(0, 0, 0, 0.5),
    0 12px 30px rgba(253, 0, 167, 0.22),
    0 0 50px rgba(253, 0, 167, 0.15);
}

/* Staggered 3D entrance */
.verses-section.visible .verse-card {
  animation: verseIn 0.85s var(--ease-out) both;
}

.verses-section.visible .verse-card:nth-child(1) { animation-delay: 0.08s; }
.verses-section.visible .verse-card:nth-child(2) { animation-delay: 0.2s; }
.verses-section.visible .verse-card:nth-child(3) { animation-delay: 0.32s; }
.verses-section.visible .verse-card:nth-child(4) { animation-delay: 0.44s; }

@keyframes verseIn {
  from {
    opacity: 0;
    transform: translateY(40px) rotateX(-12deg) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

@media (max-width: 640px) {
  .verses-section {
    margin-top: 2.5rem;
    gap: 1rem;
    perspective: 800px;
  }
  .verse-card {
    padding: 1.5rem 1.25rem 1.35rem;
  }
  .verse-card::before {
    font-size: 3.5rem;
    left: 0.6rem;
  }
  .verse-card:hover {
    transform: translateY(-6px) rotateX(3deg) scale(1.01);
  }
  .verse-card-featured {
    padding: 1.65rem 1.25rem 1.5rem;
  }
  .verse-card-featured:hover {
    transform: translateY(-8px) rotateX(4deg) scale(1.015);
  }
}

/* ===== Gathering ===== */
.gathering {
  background: var(--bg-elevated);
}

.gathering-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft), transform 0.4s var(--ease-out);
}

.gathering-card:hover {
  border-color: rgba(253, 0, 167, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(253, 0, 167, 0.08);
  transform: translateY(-4px);
}

.gathering-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.detail-value {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
}

.gathering-note {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
  line-height: 1.5;
}

/* ===== Check In ===== */
.checkin-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.checkin-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  text-align: center;
  transition: transform 0.45s var(--ease-out), border-color 0.35s var(--ease-soft), background 0.35s var(--ease-soft), box-shadow 0.45s var(--ease-out);
  color: var(--text);
}

.checkin-card:hover {
  border-color: var(--pink);
  background: var(--pink-soft);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(253, 0, 167, 0.12);
}

.checkin-card:active {
  transform: translateY(-3px) scale(1.01);
}

.checkin-icon {
  font-size: 1.5rem;
  color: var(--pink);
  margin-bottom: 1rem;
  transition: transform 0.4s var(--ease-out);
}

.checkin-card:hover .checkin-icon {
  transform: scale(1.2);
}

.checkin-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.checkin-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-logo {
  height: 160px;
  margin: 0 auto 1rem;
  opacity: 0.9;
  transition: transform 0.45s var(--ease-out), opacity 0.35s var(--ease-soft), filter 0.45s var(--ease-soft);
  cursor: default;
}

.footer-logo:hover {
  transform: scale(1.05);
  opacity: 1;
  filter: drop-shadow(0 0 20px var(--pink-glow));
}

.footer-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--pink);
  margin-bottom: 0.4rem;
}

.footer-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease-soft), text-shadow 0.3s var(--ease-soft);
}

.footer-links a:hover {
  color: var(--pink);
  text-shadow: 0 0 18px rgba(253, 0, 167, 0.45);
}

.footer-dot {
  color: var(--text-dim);
  opacity: 0.6;
  user-select: none;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 0.65rem;
  }
  .footer-dot {
    display: none;
  }
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.75rem;
  color: var(--text-dim);
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text);
}

.form-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.5rem;
}

.form-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0;
}

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

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

@media (max-width: 420px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.optional {
  font-weight: 400;
  color: var(--text-dim);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

/* Success state */
.success-panel {
  text-align: center;
  padding: 0.85rem 0;
}

.success-icon {
  font-size: 2.5rem;
  color: var(--pink);
  margin-bottom: 1rem;
}

.success-panel h3 {
  margin-bottom: 0.75rem;
}

.success-panel p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .nav-logo-img {
    height: 64px;
  }

  .nav-checkin-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .checkin-options {
    grid-template-columns: 1fr;
  }

  .gathering-card {
    padding: 1.5rem 1.25rem;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Center form submit buttons on mobile */
  .checkin-form .btn,
  .btn-full {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Loading state for buttons */
.btn.loading {
  opacity: 0.7;
  pointer-events: none;
}
