/* =========================================================
   Wedding Invitation Website — Elegant & Floral
   Palette: blush, sage, cream, soft gold
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Montserrat:wght@300;400;500&family=Playfair+Display:ital,wght@1,500;1,600;1,700&family=Great+Vibes&display=swap');

:root {
  --blush:        #e8c5c1;
  --blush-soft:   #f5e3e0;
  --sage:         #9caf88;
  --sage-deep:    #7d8f6b;
  --cream:        #fbf7f2;
  --cream-2:      #f4ece2;
  --gold:         #c9a86a;
  --ink:          #4a4441;
  --ink-soft:     #6f6763;
  --white:        #ffffff;

  /* festive accent colors (used for florals & photo tints) */
  --marigold:     #e6a23c;
  --marigold-2:   #f2c66b;
  --rose:         #d97e93;
  --rose-2:       #ecaab7;
  --leaf:         #8aa96f;
  --terracotta:   #cf7a52;

  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  --script:  'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive;
  --display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;

  --shadow: 0 10px 40px rgba(74, 68, 65, 0.10);
  --radius: 6px;
  --maxw: 1080px;
}

/* Private invite-link generator */
.admin-page { min-height: 100vh; background: var(--cream, #fffaf0); }
.admin-shell { width: min(680px, calc(100% - 32px)); margin: 48px auto; }
.admin-shell h1 { text-align: center; margin-bottom: 8px; }
.admin-intro { text-align: center; margin: 0 0 30px; }
.form-row small { display: block; margin-top: 7px; opacity: .72; }
.form-row label span { font-weight: normal; opacity: .7; }
.invite-event-options { border: 0; padding: 0; margin: 0 0 26px; }
.invite-event-options legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.invite-event-options .field-help { margin: 0 0 12px; font-size: .82rem; color: var(--ink-soft); }
.invite-event-options .checks { gap: 9px; }
.invite-result { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(120, 90, 45, .25); }
.invite-result > label { display: block; font-weight: 600; margin-bottom: 8px; }
.copy-row { display: flex; gap: 10px; margin-bottom: 14px; }
.copy-row input { min-width: 0; flex: 1; }
.invite-result > a { display: inline-block; margin: 4px 18px 12px 0; }
.admin-data-tools { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(120, 90, 45, .25); }
.admin-data-tools h2 { margin-bottom: 4px; }
.admin-button-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.danger-zone { margin-top: 28px; padding: 20px; border: 1px solid rgba(170, 54, 54, .3); background: rgba(170, 54, 54, .05); border-radius: var(--radius); }
.danger-zone h3 { margin-bottom: 4px; color: #8f2f2f; }
.danger-zone p { margin: 0 0 14px; }
.btn-danger { color: #fff; background: #9f3434; border-color: #9f3434; }
.btn-danger:hover { color: #fff; background: #812828; border-color: #812828; }
@media (max-width: 560px) {
  .admin-shell { margin: 20px auto; }
  .copy-row { display: block; }
  .copy-row .btn { width: 100%; margin-top: 10px; }
  .admin-button-row .btn { width: 100%; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.4em;
}

a { color: var(--sage-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.script {
  font-family: var(--script);
  color: var(--gold);
  font-weight: 400;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
}
.nav-brand {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--sage-deep);
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--sage-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--sage-deep);
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 110px 24px 120px;
  background:
    linear-gradient(rgba(251,247,242,.55), rgba(251,247,242,.75)),
    radial-gradient(circle at 20% 20%, var(--blush-soft), transparent 55%),
    radial-gradient(circle at 80% 30%, #eef2e6, transparent 55%),
    var(--cream);
  overflow: hidden;
}
.hero-sub {
  font-size: .8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.hero-names {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.8rem, 8.4vw, 5.6rem);
  color: var(--sage-deep);
  line-height: 1.08;
  margin: 0;
}
.hero-names .hero-person {
  display: block;
}
.hero-names .name-line {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: inherit;
  line-height: 1.08;
}
.hero-names .hero-parent {
  display: block;
  max-width: 680px;
  margin: 5px auto 10px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(.72rem, 1.4vw, .9rem);
  line-height: 1.4;
  letter-spacing: .6px;
  color: var(--gold);
}
.hero-amp {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold);
  margin: 6px 0;
}
.hero-date {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--ink);
}
.hero-place {
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* Divider with a small floral mark */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 26px auto;
  color: var(--sage);
}
.divider::before,
.divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--sage));
}
.divider::after { background: linear-gradient(90deg, var(--sage), transparent); }
.divider svg { width: 26px; height: 26px; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  text-align: center;
  padding: 70px 24px 40px;
  background:
    radial-gradient(circle at 50% -20%, var(--blush-soft), transparent 60%),
    var(--cream);
}
.page-header .eyebrow {
  font-size: .75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}
.page-header h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-top: 8px; }
.page-header p { max-width: 620px; margin: 6px auto 0; color: var(--ink-soft); }
.deadline-notice {
  max-width: 590px;
  margin: 22px auto 14px;
  padding: 14px 22px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(201, 168, 106, .12);
  color: var(--ink);
}
.deadline-notice strong,
.deadline-notice span { display: block; }
.deadline-notice strong { font-family: var(--serif); font-size: 1.35rem; }
.deadline-notice span { margin-top: 3px; font-size: .85rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-title { text-align: center; margin-bottom: 8px; font-size: 2.4rem; }
.section-eyebrow {
  text-align: center;
  font-size: .75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 40px;
}
.card {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 46px rgba(74,68,65,.14); }
.card .icon {
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  color: var(--sage);
}
.card h3 { font-size: 1.6rem; }
.card .meta {
  font-size: .78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.card p { color: var(--ink-soft); margin: 6px 0; }

/* Timeline-style event rows */
.event {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--cream-2);
}
.event:last-child { border-bottom: none; }
.event .when {
  text-align: right;
  border-right: 2px solid var(--blush);
  padding-right: 24px;
}
.event .when .date { font-family: var(--serif); font-size: 1.5rem; color: var(--sage-deep); }
.event .when .time { font-size: .8rem; letter-spacing: 1px; color: var(--ink-soft); }
.event .what h3 { font-size: 1.7rem; margin-bottom: 4px; }
.event .what .place { color: var(--gold); font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; }
.event .what .dress { display: inline-block; margin-top: 8px; font-size: .8rem; color: var(--ink-soft); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 34px;
  border-radius: 40px;
  border: 1.5px solid var(--sage);
  background: var(--sage);
  color: #fff;
  cursor: pointer;
  transition: all .25s ease;
}
.btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--sage-deep);
}
.btn-outline:hover { background: var(--sage); color: #fff; }
.btn-lg { padding: 16px 44px; font-size: .85rem; }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------- Forms (RSVP) ---------- */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 22px; }
.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
label {
  display: block;
  font-size: .78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd3c8;
  border-radius: var(--radius);
  background: var(--cream);
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 300;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(156,175,136,.18);
}
textarea { resize: vertical; min-height: 110px; }

.checks { display: flex; flex-wrap: wrap; gap: 14px; }
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid #ddd3c8;
  border-radius: 40px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: .85rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  margin: 0;
}
.check input { width: auto; accent-color: var(--sage); }

.radio-group { display: flex; gap: 26px; }
.radio-group .check { border-radius: 40px; }

.form-note { font-size: .8rem; color: var(--ink-soft); text-align: center; margin-top: 8px; }

.form-msg {
  display: none;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  text-align: center;
  font-size: .95rem;
}
.form-msg.success { display: block; background: #eef2e6; color: var(--sage-deep); border: 1px solid var(--sage); }
.form-msg.error   { display: block; background: #f9e4e2; color: #a45b53; border: 1px solid var(--blush); }

/* ---------- Info list (travel) ---------- */
.info-list { max-width: 760px; margin: 0 auto; }
.info-item {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--cream-2);
}
.info-item:last-child { border-bottom: none; }
.info-item .info-icon { flex: 0 0 40px; color: var(--sage); }
.info-item h3 { font-size: 1.5rem; margin-bottom: 4px; }
.info-item p { margin: 4px 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 54px 24px;
  background: var(--sage-deep);
  color: #eef2e6;
}
.footer .names { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 2.1rem; color: #fff; }
.footer .date { letter-spacing: 3px; text-transform: uppercase; font-size: .78rem; margin-top: 8px; opacity: .85; }
.footer .hearts { margin-top: 18px; color: var(--blush); }

/* ---------- Reveal on scroll ----------
   Only hide when JS is active (html.js). With no JS everything stays visible. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-2);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { border-top: 1px solid var(--cream-2); }
  .nav-links a { display: block; padding: 14px 24px; }
  .nav-links a::after { display: none; }

  .form-row.two { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; }
  .event .when { text-align: left; border-right: none; border-left: 2px solid var(--blush); padding-right: 0; padding-left: 18px; }
  .radio-group { flex-direction: column; gap: 12px; }
  .form-wrap { padding: 28px 20px; }
}

/* =========================================================
   TRADITIONAL UPGRADE — mandala, gold ornaments, countdown
   ========================================================= */

/* --- Hero mandala backdrop --- */
.hero { position: relative; }
.hero-mandala {
  position: absolute;
  color: var(--sage);
  opacity: .10;
  pointer-events: none;
  z-index: 0;
}
.hero-mandala.top    { top: -120px; left: 50%; transform: translateX(-50%); width: 520px; }
.hero-mandala.left   { bottom: -80px; left: -90px; width: 260px; opacity: .09; color: var(--gold); }
.hero-mandala.right  { top: -40px; right: -90px; width: 260px; opacity: .09; color: var(--gold); }
.hero > *:not(.hero-mandala):not(.floral-cluster) { position: relative; z-index: 1; }

/* --- Corner mandalas on interior page headers --- */
.page-header { position: relative; overflow: hidden; }
.page-header .corner {
  position: absolute;
  width: 190px;
  color: var(--gold);
  opacity: .12;
  pointer-events: none;
}
.page-header .corner.tl { top: -60px; left: -60px; }
.page-header .corner.br { bottom: -70px; right: -60px; transform: rotate(180deg); }

/* --- Gold ornamental divider (lotus in the middle) --- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px auto;
  color: var(--gold);
  max-width: 340px;
}
.ornament::before,
.ornament::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament svg { width: 34px; height: 34px; flex: none; }

/* --- Parents / invite lines --- */
.hero-invite {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* --- Muhurtham date badge --- */
.date-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 26px;
  border: 1px solid var(--gold);
  border-radius: 40px;
  background: rgba(201, 168, 106, 0.08);
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 1px;
  color: var(--ink);
}

/* --- Countdown --- */
.countdown {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.count-box {
  min-width: 92px;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(201, 168, 106, 0.4);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(74, 68, 65, 0.06);
  backdrop-filter: blur(2px);
}
.count-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--sage-deep);
  font-weight: 600;
}
.count-label {
  font-size: .68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
}
.countdown-note {
  margin-top: 16px;
  font-family: var(--script);
  font-size: 1.6rem;
  color: var(--gold);
}

/* --- Section lotus mark above titles --- */
.section-mark {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  color: var(--gold);
  opacity: .85;
}

/* --- Event venue block + map link --- */
.event .what .venue-line {
  margin-top: 10px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.event .what .venue-line strong { color: var(--ink); }
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sage-deep);
  border: 1px solid var(--sage);
  border-radius: 30px;
  padding: 6px 16px;
  transition: all .2s;
}
.map-link:hover { background: var(--sage); color: #fff; }
.map-link svg { width: 14px; height: 14px; }

/* --- Day grouping heading on events --- */
.day-head {
  text-align: center;
  margin: 48px 0 8px;
}
.day-head .daynum {
  font-family: var(--script);
  font-size: 2.4rem;
  color: var(--gold);
}
.day-head .dayname {
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Event details stay private until a valid personalized invite is loaded. */
.events-page [data-invite-event],
.events-page [data-invite-day-events] { display: none; }
.events-page [data-invite-event].invite-event-visible { display: grid; }
.events-page [data-invite-day-events].invite-event-visible { display: block; }
.events-page #events-invite-message { margin: 0 auto 30px; }

@media (max-width: 760px) {
  .hero-mandala.left, .hero-mandala.right { display: none; }
  .hero-mandala.top { width: 360px; top: -70px; }
  .count-box { min-width: 72px; padding: 12px 8px; }
  .count-num { font-size: 2rem; }
}

/* =========================================================
   COLORFUL FLORALS + EVENT PHOTOS
   ========================================================= */

/* --- Colored floral corner clusters --- */
.floral-cluster {
  position: absolute;
  display: block;
  width: 185px;
  height: 185px;
  pointer-events: none;
  z-index: 1;
}
.floral-cluster svg { display: block; width: 100%; height: 100%; }
.hero .floral-cluster.bl { bottom: 0; left: 6px; }
.hero .floral-cluster.tr { top: -46px; right: 0; transform: scaleX(-1); }

/* Slightly larger capital initials on the names */
.hero-names .initial { font-size: 1.12em; }
.hero-names .name-line { white-space: nowrap; }
.page-header .floral-cluster { width: 135px; height: 135px; z-index: 0; opacity: .7; }
.page-header .floral-cluster.bl { bottom: -6px; left: -4px; }
.page-header .floral-cluster.tr { top: -6px; right: -4px; transform: scaleX(-1); }
/* Header text must always sit above the decorative corner florals */
.page-header > :not(.floral-cluster) { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .floral-cluster { width: 115px; height: 115px; }
  .hero .floral-cluster.tr { display: none; }
  /* On phones, shrink the header florals into the corners and make them
     faint. Combined with the z-index rule above they stay behind the
     text as a subtle accent and never obscure the heading/paragraph. */
  .page-header .floral-cluster { width: 82px; height: 82px; opacity: .3; }
  .page-header .floral-cluster.bl { bottom: -2px; left: -14px; }
  .page-header .floral-cluster.tr { top: -2px; right: -14px; }
}

/* --- Colored lotus/floral in the ornament divider --- */
.ornament.color svg { width: 40px; height: 40px; }

/* --- Outline sprig accent (vine) --- */
.sprig {
  display: block;
  width: 210px;
  height: 44px;
  margin: 4px auto 6px;
  opacity: .9;
}

/* --- Floral corner accents inside general sections --- */
.section.has-floral { position: relative; overflow: hidden; }
.section .floral-cluster { width: 120px; height: 120px; }
.section .floral-cluster.bl { bottom: 10px; left: 10px; }
.section .floral-cluster.tr { top: 10px; right: 10px; transform: scaleX(-1); }
@media (max-width: 760px) {
  .section .floral-cluster { width: 90px; height: 90px; }
}

/* --- Section mark warmed up --- */
.section-mark { color: var(--marigold); }

/* --- Per-event photo slot --- */
.event-photo {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 8px 24px rgba(74, 68, 65, 0.12);
}
.event-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.event-photo .motif {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  z-index: 0;
  width: 78px; height: 78px;
  color: rgba(255, 255, 255, 0.92);
}
.event-photo .photo-label {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 12px 18px;
  font-family: var(--script);
  font-weight: 600;
  font-size: 1.9rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.30));
}
/* warm festive gradients (placeholders until real photos are added) */
.ph-haldi   { background: linear-gradient(135deg, #f2c66b, #e6a23c); }
.ph-sangeet { background: linear-gradient(135deg, #d97e93, #a86fa0); }
.ph-mehndi  { background: linear-gradient(135deg, #8aa96f, #cf7a52); }
.ph-vratham { background: linear-gradient(135deg, #ecc57e, #cf9a52); }
.ph-morning { background: linear-gradient(135deg, #ecaab7, #d97e93); }
.ph-wedding { background: linear-gradient(135deg, #cf7a52, #c9a86a); }

/* =========================================================
   PERSONALIZED INVITE — greeting + per-guest RSVP cards
   ========================================================= */

/* --- "Dear Murali," greeting --- */
.invite-greeting {
  font-family: var(--script);
  color: var(--gold);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 6px;
}
.hero .invite-greeting { margin-bottom: 10px; }
.page-header .invite-greeting { margin: 4px auto 10px; }

/* --- Guest cards --- */
.members { margin-bottom: 6px; }
.member {
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 20px 20px 22px;
  margin-bottom: 18px;
}
.member-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-head .m-name {
  flex: 1;
  font-size: 1.05rem;
  font-family: var(--serif);
  background: var(--white);
}
.member-remove {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #ddd3c8;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: all .2s;
}
.member-remove:hover { background: var(--blush-soft); color: #a45b53; border-color: var(--blush); }

.member-attend {
  display: flex;
  gap: 12px;
  margin: 14px 0 6px;
}
.member-events { margin-top: 10px; }
.member-events-label {
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 12px 0 8px;
}
.member-events .checks { gap: 10px; }
.event-check { align-items: baseline; }
.event-check small {
  display: block;
  font-size: .68rem;
  letter-spacing: .5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  opacity: .8;
}
.member-meal { margin-top: 12px; }

.add-member-wrap { margin: 4px 0 26px; }

@media (max-width: 760px) {
  .member { padding: 16px 14px 18px; }
  .member-attend { flex-wrap: wrap; }
}
