@import url('https://fonts.googleapis.com/css2?family=Fleur+De+Leah&family=Cinzel:wght@400;600;700&family=Playfair+Display:wght@400;600&family=Great+Vibes&display=swap');

:root{
  --emerald-dark: #0f2e25;
  --emerald: #0e4d3a;
  --emerald-light: #1f7a5a;

  --gold: #d4af37;
  --gold-soft: #e6c766;
  --gold-glow: rgba(212,175,55,.35);

  --bg-deep: #081c15;
  --card: rgba(14,77,58,.55);

  --text-main: #f6f4ec;
  --text-muted: #d7d2c4;

  --border: rgba(212,175,55,.25);
  --shadow: 0 12px 35px rgba(0,0,0,.45);

  --radius: 20px;
  --container: 1100px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: 'Playfair Display', serif;
  background:
    radial-gradient(800px 500px at 20% 10%, rgba(212,175,55,.05), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(31,122,90,.08), transparent 60%),
    linear-gradient(to bottom, #04110d, var(--bg-deep));
  color: var(--text-main);
  line-height:1.6;
}

.container{
  width:min(var(--container), calc(100% - 40px));
  margin-inline:auto;
}

a{ color:inherit; text-decoration:none; }
code{ background: rgba(255,255,255,.08); padding:.12rem .38rem; border-radius:10px; }

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* Typography */
h1, h2, h3 { font-family: 'Cinzel', serif; letter-spacing:.5px; margin:0; }
.muted{ color: var(--text-muted); }
.small{ font-size:.9rem; }

.section__header{ text-align:center; margin-bottom: 22px; }
.section__header h2{
  color: var(--gold-soft);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(8,28,21,.85);
  border-bottom: 1px solid var(--border);
}

/* Nav */
.nav{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'Cinzel', serif;
  font-weight:700;
  font-size:large;
  color: var(--gold);
}

.brand__mark{
  width:34px;height:34px;
  display:grid; place-items:center;
  border:1px solid rgba(212,175,55,.35);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.nav__menu{
  display:flex;
  align-items:center;
  gap: 14px;
}

.nav__menu a{
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 12px;
  transition: .2s ease;
}

.nav__menu a:hover{
  background: rgba(212,175,55,.10);
  color: var(--gold);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,.70);
  background: rgba(0,0,0,.15);
  color: var(--gold);
  font-weight:600;
  cursor:pointer;
  transition: .25s ease;
  box-shadow: 0 0 15px rgba(212,175,55,.12);
}

.btn:hover{
  background: rgba(212,175,55,.95);
  color: var(--emerald-dark);
  box-shadow: 0 0 26px rgba(212,175,55,.35);
}

.btn:focus{ outline:none; box-shadow: 0 0 0 3px rgba(212,175,55,.22), 0 0 26px rgba(212,175,55,.35); }

.btn--ghost{
  border-color: rgba(31,122,90,.65);
  color: var(--gold-soft);
  background: rgba(31,122,90,.10);
}

.btn--small{ padding: 9px 12px; border-radius: 16px; font-size:.95rem; }

/* Hero */
.hero{
  position:relative;
  min-height: 85vh;
  display:grid;
  align-items:center;
  text-align:center;
  overflow:hidden;
  background:
    linear-gradient(to bottom, rgba(4,17,13,.78), rgba(4,17,13,.95)),
    url("assets/hero.jpg");
  background-size: cover;
  background-position:center;
  border-bottom:1px solid var(--border);
}

/* Existing overlay stays behind the leaves */
.hero__overlay{
  position:absolute;
  inset:0;
  z-index:0;
}

/* Canvas leaves overlay (must match <canvas class="hero__leaves" id="leavesCanvas">) */
.hero__leaves{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;  /* important: keep hero buttons clickable */
  z-index:1;            /* above overlay + background */
  opacity:0.65;         /* intensity */
  mix-blend-mode: screen; /* optional: makes leaves feel glowy/magical */
}

.hero__content{ position:relative; z-index:2; padding: 72px 0; }

.eyebrow{
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: var(--gold-soft);
  margin: 0 0 8px;
  text-shadow: 0 0 12px rgba(212,175,55,.18);
}

.hero__title{
  font-family: 'Fleur De Leah', cursive;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: normal;
  color: var(--gold);
  text-shadow: 0 0 18px var(--gold-glow);
}

.hero__subtitle{
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 12px 0 26px;
}

.hero__actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

/* Sections */
.section{ padding: 80px 0; }

.section--alt{
  background: rgba(14,77,58,.22);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Wedding Details */

#details .cards{
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}

#details .card{
  flex: 0 1 450px;
  max-width: 450px;
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:20px;
  margin-top: 30px;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition:.25s ease;
}

.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,.6);
}

.card h3{ color: var(--gold-soft); margin: 0 0 10px; }

.card__actions{ margin-top: 12px; }

.link{ color: var(--gold-soft); }
.link:hover{ text-decoration: underline; }

/* Two-column blocks */
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* List */
.list{ margin: 0; padding-left: 18px; }
.list li{ margin: 6px 0; }

/* Timeline */
.timeline{
  list-style:none;
  padding:0;
  max-width:750px;
  margin:40px auto 0;
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.timeline__item{
  background: rgba(14,77,58,.35);
  border: 1px solid rgba(212,175,55,.22);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  border-radius: 16px;
}

.timeline__time{
  color: var(--gold-soft);
  font-weight:700;
}

/* Countdown */
.countdown{
  display:flex;
  justify-content:center;
  gap:16px;
  margin-top:30px;
  flex-wrap:wrap;
}

.countdown__item{
  border:1px solid rgba(212,175,55,.28);
  padding:14px;
  border-radius:16px;
  background: rgba(0,0,0,.30);
  width:110px;
}

.countdown__num{
  font-size:1.8rem;
  color: var(--gold);
  font-weight:700;
}

.countdown__label{
  color: var(--text-muted);
  font-size:.9rem;
}

/* Form */
.form{ max-width: 820px; margin: 0 auto; }

.field{
  display:flex;
  flex-direction:column;
  gap: 6px;
  margin: 10px 0;
}

input, select, textarea{
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 14px;
  padding: 12px;
  color: var(--text-main);
}

input::placeholder, textarea::placeholder{ color: rgba(215,210,196,.75); }

input:focus, select:focus, textarea:focus{
  outline:none;
  border-color: rgba(212,175,55,.75);
  box-shadow: 0 0 12px var(--gold-glow);
}

textarea{ resize: vertical; }

.form__actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

/* Accordion */
.accordion details{
  background: rgba(14,77,58,.28);
  border:1px solid rgba(212,175,55,.25);
  border-radius:14px;
  padding:14px;
  margin-bottom:12px;
}

.accordion summary{
  cursor:pointer;
  font-weight:700;
  color: var(--gold-soft);
}

/* Footer */
.footer{
  padding:40px 0;
  text-align:center;
  border-top:1px solid var(--border);
  background: rgba(4,17,13,.9);
}

/* Registry */

.registry-wrapper{
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}

.registry-wrapper .card{
  flex: 0 1 420px;
  max-width: 420px;
  text-align: center;
}

/* =========================================
   NAV TOGGLE
   - Hidden on desktop
   - Appears on mobile
   - Dropdown menu styling
========================================= */

.nav__toggle{
  display:none; /* desktop hidden */
  background: rgba(8, 28, 21, .75);
  border: 1px solid rgba(212,175,55,.55);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.nav__toggle:hover{
  background: rgba(8, 28, 21, .9);
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
  transform: translateY(-1px);
}

.nav__toggle:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,175,55,.25), 0 14px 30px rgba(0,0,0,.45);
}

.nav__bar{
  display:block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: linear-gradient(90deg, #e6c766, #d4af37);
  border-radius: 999px;
  opacity: .95;
}

/* Responsive */
@media (max-width:900px){
  .cards{ grid-template-columns:1fr; }
  .grid-2{ grid-template-columns:1fr; }

  /* show toggle on mobile */
  .nav__toggle{
    display:inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* make the menu a dropdown */
  .nav__menu{
    display:none;
    position:absolute;
    right: 20px;
    top: 70px;
    width: min(320px, calc(100% - 40px));
    padding: 12px;
    border-radius: 18px;

    background:
      radial-gradient(500px 300px at 20% 0%, rgba(212,175,55,.10), transparent 60%),
      radial-gradient(600px 380px at 90% 20%, rgba(31,122,90,.18), transparent 60%),
      rgba(8, 28, 21, .92);

    border: 1px solid rgba(212,175,55,.35);
    box-shadow: 0 18px 45px rgba(0,0,0,.55);
    backdrop-filter: blur(12px);
  }

  .nav__menu.is-open{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap: 6px;
  }

  .nav__menu a{
    padding: 10px 12px;
    border-radius: 14px;
  }

  /* Disabled RSVP button */

  .btn:disabled{
    cursor: not-allowed;
    opacity: 0.6;
    background: rgba(255,255,255,.08);
    color: var(--text-muted);
    border-color: rgba(212,175,55,.2);
    box-shadow: none;
  }

  .btn:disabled:hover{
    transform: none;
    background: rgba(255,255,255,.08);
    color: var(--text-muted);
  }
}

/* ================================
   BRIDAL PARTY - VERTICAL CARDS
================================ */

.party-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
  text-align: center;
}

/* Reset previous chip styles */
.party-member,
.party-member.card{
  display: flex;
  flex-direction: column; /* STACK vertically */
  align-items: center;
  justify-content: flex-start;

  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Image on top */
.party-member__image{
  width: 110px;
  height: 110px;
  border-radius: 999px;
  object-fit: cover;

  border: 3px solid rgba(212,175,55,.45);
  box-shadow: 0 0 20px rgba(212,175,55,.18);

  margin-bottom: 14px;
}

/* Name below image */
.party-member__name{
  margin: 0;
  font-size: 1.1rem;
  color: var(--gold-soft);
  line-height: 1.2;
}

/* Role below name */
.party-member__role{
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Subtle hover effect */
.party-member:hover{
  transform: translateY(-4px);
  transition: all .25s ease;
}

/* Responsive */
@media (max-width: 900px){
  .party-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px){
  .party-grid{
    grid-template-columns: 1fr;
  }
}

/* ================================
   BRIDE & GROOM FEATURE CHIPS
================================ */

.about-couple{
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.about-person{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Bigger, more important image */
.about-person__image{
  width: 180px;
  height: 180px;
  border-radius: 999px;
  object-fit: cover;

  border: 4px solid rgba(212,175,55,.6);
  box-shadow: 0 0 30px rgba(212,175,55,.25);

  margin-bottom: 18px;
  transition: all .3s ease;
}

/* Fancy role title */
.about-person h2{
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--gold-soft);
  margin-bottom: 6px;
}

/* Script name (main focus) */
.about-person__name{
  font-family: 'Fleur De Leah', cursive;
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1;
}

/* Optional description text */
.about-person p{
  max-width: 260px;
}

/* Hover = subtle glow */
.about-person:hover .about-person__image{
  transform: scale(1.05);
  box-shadow: 0 0 45px rgba(212,175,55,.4);
}

/* Responsive */
@media (max-width: 600px){
  .about-couple{
    flex-direction: column;
    gap: 40px;
  }
}

/* ================================
   SPECIAL ROLES - CHIP STYLE
================================ */

/* layout */
.special-grid{
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* remove card look */
.special-member,
.special-member.card{
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* chip */
.special-member{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 14px;
  border-radius: 999px;

  background: rgba(14,77,58,.35);
  border: 1px solid rgba(212,175,55,.25);

  transition: all .25s ease;
}

/* icon */
.special-icon{
  font-size: 1.4rem;
  margin: 0;
  filter: drop-shadow(0 0 6px rgba(212,175,55,.3));
}

/* text container */
.special-member__text{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* name */
.special-member__name{
  font-family: 'Cinzel', serif; /* cleaner than script here */
  font-size: 0.95rem;
  color: var(--gold-soft);
  margin: 0;
}

/* role */
.special-member__role{
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* hover */
.special-member:hover{
  transform: translateY(-2px);
  border-color: rgba(212,175,55,.5);
  box-shadow: 0 0 15px rgba(212,175,55,.2);
}