/* ----------------------------------------
   FONTS
----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+3:wght@400;500;600&display=swap');

/* ----------------------------------------
   GLOBAL
----------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  color: #eaf3ff;
  background-color: #000a16;
  line-height: 1.6;
  overflow-x: hidden;
  animation: fadeInPage 1.5s ease-in;
}

@keyframes fadeInPage {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Aurora background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("photos/northernlights-bg.jpeg") center/cover no-repeat;
  opacity: 0.55;
  z-index: -1;
  animation: auroraFloat 22s ease-in-out infinite alternate;
}

@keyframes auroraFloat {
  from { transform: scale(1); opacity: 0.5; }
  to   { transform: scale(1.07); opacity: 0.8; }
}

/* ----------------------------------------
   HEADER
----------------------------------------- */
header {
  text-align: center;
  padding: 45px 10px 25px;
}

header h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.7em;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(120, 180, 255, 0.3);
}

.subtitle {
  font-size: 1.15em;
  opacity: 0.9;
}

/* ----------------------------------------
   HERO SECTION
----------------------------------------- */
#hero {
  display: flex;
  justify-content: center;
  padding: 55px 20px;
}

.hero-card {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;

  background: rgba(15, 25, 45, 0.75);
  backdrop-filter: blur(14px);
  border-radius: 20px;

  padding: 40px;
  max-width: 1100px;
  border: 1px solid rgba(255,255,255,0.08);

  box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

.hero-photo img {
  width: 340px;
  border-radius: 16px;
  box-shadow: 0 0 28px rgba(0,0,0,0.55);
}

.hero-details {
  flex: 1;
  min-width: 280px;
}

.hero-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.9em;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(130, 190, 255, 0.4);
  margin-bottom: 20px;
}

/* ----------------------------------------
   EVENT DETAILS
----------------------------------------- */
.event {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid #6fc4ff;
  padding: 18px 22px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 0 16px rgba(0,0,0,0.23);
}

.event h3 {
  color: #a3e3ff;
  margin: 0 0 8px;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.25em;
}

.event p {
  color: #dce9f7;
  font-size: 1.05em;
}

/* ----------------------------------------
   BUTTONS
----------------------------------------- */
.btn {
  font-family: 'Source Sans 3', sans-serif;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
  display: inline-block;
  border: none;
}

/* RSVP scroll button */
.scroll-btn {
  background: linear-gradient(90deg, #ffd479, #ffb347);
  color: #1f1f1f;
  box-shadow: 0 0 16px rgba(255,200,100,0.35);
}
.scroll-btn:hover {
  background: linear-gradient(90deg, #ffe3b7, #ffcc8f);
  box-shadow: 0 0 22px rgba(255,200,120,0.5);
}

/* Livestream button */
.livestream-btn {
  margin-top: 12px;
  background: linear-gradient(90deg, #4da3ff, #58b1ff);
  color: #fff;
  box-shadow: 0 0 18px rgba(120,180,255,0.35);
}
.livestream-btn:hover {
  background: linear-gradient(90deg, #6bc3ff, #9adfff);
  box-shadow: 0 0 24px rgba(150,210,255,0.55);
}

/* ----------------------------------------
   RSVP FORM
----------------------------------------- */
.rsvp-wrapper {
  display: flex;
  justify-content: center;
  padding: 70px 20px 50px;
}

.rsvp-card {
  width: 100%;
  max-width: 520px;
  background: rgba(10, 20, 40, 0.9);
  border-radius: 16px;
  padding: 35px 40px;

  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);

  box-shadow: 0 0 40px rgba(0,0,0,0.4);
  animation: fadeUp 1s ease both;
}

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

.rsvp-card h2 {
  text-align: center;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.7em;
  margin-bottom: 10px;
}

.rsvp-intro {
  text-align: center;
  font-size: 0.95em;
  color: #d0d9e8;
  margin-bottom: 25px;
}

/* Fields */
.form-group {
  margin-bottom: 16px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: none;

  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1em;
  transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 12px rgba(140,200,255,0.4);
}

/* RSVP submit */
.rsvp-btn {
  background: linear-gradient(90deg, #ffd479, #ffb347);
  color: #222;
  box-shadow: 0 0 18px rgba(255,200,100,0.35);
}
.rsvp-btn:hover {
  background: linear-gradient(90deg, #ffe3b7, #ffd9a0);
  box-shadow: 0 0 26px rgba(255,200,100,0.55);
}

#rsvpResult {
  margin-top: 14px;
  text-align: center;
  font-style: italic;
}

/* ----------------------------------------
   MEMORY WALL
----------------------------------------- */
#memory-wall {
  padding: 85px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

#memory-wall h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2em;
  text-shadow: 0 0 12px rgba(120, 180, 255, 0.3);
}

.section-subtitle {
  font-size: 1em;
  opacity: 0.9;
  margin-bottom: 45px;
}

/* Form */
.memory-form {
  display: flex;
  flex-direction: column;
  gap: 12px;

  max-width: 520px;
  margin: 0 auto 50px;

  background: rgba(15,25,45,0.8);
  border-radius: 14px;
  padding: 30px 25px;
  border: 1px solid rgba(255,255,255,0.08);

  box-shadow: 0 0 28px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}

.memory-form input,
.memory-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.memory-form input:focus,
.memory-form textarea:focus {
  outline: none;
  background: rgba(255,255,255,0.15);
}

/* Memory Submit Button */
.memory-btn {
  background: linear-gradient(90deg, #68d5ff, #93e5ff, #a8b6ff);
  color: #0a0a0a;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.35s;
}
.memory-btn:hover {
  background: linear-gradient(90deg, #b8f2ff, #aed9ff, #b1c4ff);
}

/* Image preview */
#previewContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.preview-thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
}

/* Pinterest Masonry */
.memory-grid {
  column-count: 3;
  column-gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.memory-tile {
  break-inside: avoid;
  display: inline-block;
  width: 100%;

  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;

  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
  transition: 0.3s ease;
}
.memory-tile:hover {
  transform: scale(1.03);
}

/* Collages */
.collage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.collage-grid img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

/* No-photo memory */
.memory-tile.no-photo {
  padding: 20px 18px;
  background: linear-gradient(180deg, rgba(60,120,200,0.2), rgba(90,150,240,0.18));
}

/* Memory Info */
.memory-info {
  padding: 15px;
  text-align: left;
}
.memory-info h4 {
  font-family: 'Libre Baskerville', serif;
  margin-bottom: 5px;
  color: #fff;
}
.memory-info p {
  color: #cfd9e8;
  line-height: 1.5;
}

/* ----------------------------------------
   FOOTER
----------------------------------------- */
footer {
  text-align: center;
  padding: 40px 10px;
  margin-top: 40px;
  opacity: 0.8;
  font-size: 0.95em;
  border-top: 1px solid rgba(255,255,255,0.1);
}
footer p {
  margin: 0;
}

/* ----------------------------------------
   RESPONSIVE
----------------------------------------- */
@media (max-width: 950px) {
  .memory-grid { column-count: 2; }
}

@media (max-width: 650px) {
  .hero-card {  
    flex-direction: column;
    text-align: center;
  }

  .hero-photo img {
    width: 260px;
  }

  .memory-grid {
    column-count: 1;
  }

  .rsvp-card,
  .memory-form {
    width: 90%;
    padding: 25px;
  }
}


/* ----------------------------------------
   STICKY NAVBAR (C2 STYLE)
----------------------------------------- */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #050b18; /* deep navy */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

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

.nav-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: #dce9f7; /* soft light text */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #dce9f7;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #dce9f7;
  font-size: 1.5rem;
}

/* Scroll offset so navbar doesn't cover anchors */
section[id],
header[id] {
  scroll-margin-top: 80px;
}

/* ----------------------------------------
   GENERAL SECTION PANELS
----------------------------------------- */
.section-block {
  padding: 60px 20px 40px;
}

.section-card {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(10, 20, 40, 0.9);
  border-radius: 18px;
  padding: 35px 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.section-card h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.9em;
  margin-top: 0;
}

.section-intro {
  font-size: 0.98em;
  color: #d0d9e8;
  max-width: 650px;
  margin-bottom: 22px;
}

/* Life Story layout reuse existing fonts */
.life-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.life-timeline ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.life-timeline li {
  margin-bottom: 0.7rem;
}

.life-timeline span {
  font-weight: 600;
}

/* Condolence form styling */
.stacked-form input,
.stacked-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1em;
  margin-bottom: 12px;
}

.stacked-form input:focus,
.stacked-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(140, 200, 255, 0.4);
}

.form-status {
  font-size: 0.9em;
  opacity: 0.9;
  margin-top: 6px;
}

/* Music section layout */
.music-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr);
  gap: 2rem;
  align-items: center;
}

.music-player iframe {
  width: 100%;
}

/* Donations layout */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.donation-card {
  background: rgba(15, 25, 45, 0.9);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
}

/* Ghost button style (used for donation links) */
.ghost-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #eaf3ff;
  margin-top: 0.75rem;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ----------------------------------------
   RESPONSIVE TWEAKS FOR NAV + SECTIONS
----------------------------------------- */
@media (max-width: 900px) {
  .life-grid,
  .music-layout,
  .donation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 750px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    right: 1.5rem;
    top: 3.1rem;
    background: #050b18;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
    display: none;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .section-card {
    padding: 28px 22px;
  }
}


