/* ==========================================================================
   Nikah RSVP — design system
   Theme: ivory · cream · champagne gold · soft sage accents (light, airy)
   ========================================================================== */

:root {
  /* Primary surfaces */
  --emerald: #FBF7EF;
  --emerald-2: #F4EEDF;
  --sage: #D8D0BE;
  --sage-soft: #EFE9DB;

  /* Champagne gold */
  --gold: #C9A55A;
  --gold-light: #B8934A;
  --gold-deep: #7A5C1E;

  /* Neutrals */
  --ivory: #FDFBF6;
  --cream: #F6F0E3;
  --paper: #FFFFFF;

  --blush: #F4DDD6;
  --rose: #B9786E;
  --ink: #2E2A24;
  --muted: #6E6659;
  --line: #E6DECD;
  --err: #A4281D;
  --focus: #B8934A;

  /* Solid warm brown */
  --coffee: #5B4A2E;
  --coffee-2: #6E5A39;

  --radius: 20px;
  --shadow: 0 2px 4px rgba(90,75,50,.06), 0 14px 34px rgba(90,75,50,.12);

  /* Fonts */
  --f-script: 'Great Vibes', 'Brush Script MT', cursive;
  --f-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-ar: 'Amiri', 'Traditional Arabic', 'Geeza Pro', serif;

  /* Ornamental patterns */
  --pat-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23C9A55A' stroke-opacity='.22' stroke-width='1'%3E%3Crect x='13' y='13' width='38' height='38'/%3E%3Crect x='13' y='13' width='38' height='38' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='4'/%3E%3C/g%3E%3C/svg%3E");
  --pat-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23C9A55A' stroke-opacity='.18' stroke-width='1'%3E%3Crect x='13' y='13' width='38' height='38'/%3E%3Crect x='13' y='13' width='38' height='38' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='4'/%3E%3C/g%3E%3C/svg%3E");
  
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--ivory); }
body.locked { overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Ornaments & type ---------- */
.orn { display: flex; align-items: center; gap: 14px; color: var(--gold); max-width: 280px; margin: 18px auto; }
.orn::before, .orn::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.orn::after { transform: scaleX(-1); }
.orn i { width: 9px; height: 9px; border: 1.5px solid currentColor; transform: rotate(45deg); }
.eyebrow { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); font-weight: 500; }
.eyebrow.dark { color: var(--gold-deep); }
.names { font-family: var(--f-script); font-weight: 400; line-height: 1.05; color: var(--gold-deep); font-size: clamp(3rem, 14vw, 4.8rem); display: flex; flex-direction: column; align-items: center; }
.names.big { font-size: clamp(3.4rem, 17vw, 6.4rem); } .names.small { font-size: 2.6rem; flex-direction: row; justify-content: center; gap: 12px; }
.names .amp { font-family: var(--f-serif); font-style: italic; font-size: .38em; color: var(--ink); opacity: .7; margin: .1em 0; }
.names.small .amp { margin: 0; }
.bismillah, .ar { font-family: var(--f-ar); }
.bismillah { color: var(--gold-deep); font-size: 1.7rem; margin-bottom: 14px; }

/* ---------- Layout ---------- */
.sec { padding: 76px 0; position: relative; }
.wrap { width: min(1040px, 100% - 40px); margin: 0 auto; position: relative; } .wrap.narrow { width: min(660px, 100% - 40px); } .center { text-align: center; }
.paper { background: var(--cream); } .pattern { background-image: var(--pat-light); }
.pattern-dark { background: var(--emerald-2) var(--pat-dark); color: var(--ink); }
.sec-head { text-align: center; margin-bottom: 28px; }
.sec-head h2 { font-family: var(--f-serif); font-weight: 600; font-size: clamp(2rem, 6vw, 2.8rem); color: var(--ink); line-height: 1.15; }
.sec-head p { color: var(--muted); max-width: 52ch; margin: 8px auto 0; }
.sec-head.light h2 { color: var(--ink); } .sec-head.light p { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; } .reveal.in, html:not(.js) .reveal { opacity: 1; transform: none; }
.grid2 { display: grid; gap: 0 14px; } @media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Buttons & forms (STANDARDIZED WHITE TEXT) ---------- */
.btn { 
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; 
  min-height: 50px; padding: 0 30px; border-radius: 999px; 
  border: 3px solid #F6F3EC;
  font-weight: 600; letter-spacing: .03em; cursor: pointer; text-decoration: none; 
  transition: transform .15s, box-shadow .15s, filter .15s; 
  background: var(--coffee);
  color: #FFFFFF !important;
  box-shadow: 0 0 0 1px #E6DECD, 0 4px 12px rgba(0,0,0,0.1); 
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); } 
.btn:active { transform: none; } 
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn.gold, .btn.dark, .btn.line { background: var(--coffee); color: #FFFFFF !important; border: 3px solid #F6F3EC; }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: .9rem; } .btn.block { width: 100%; } .btn.loading { pointer-events: none; }

.linkbtn { background: none; border: 0; color: var(--gold-deep); text-decoration: underline; cursor: pointer; padding: 4px 0; font-size: .85rem; align-self: flex-start; }

/* The Card Element */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px; color: var(--ink); position: relative; z-index: 1; }


.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; position: relative; }
.field label, legend { font-size: .85rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; } .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .8rem; color: var(--muted); } .hint.right { text-align: right; }
input[type=text], input[type=tel], input[type=url], input[type=number], input[type=search], input[type=date], input[type=password], textarea, select {
  width: 100%; min-height: 50px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,165,90,.28); }
.err { color: var(--err); font-weight: 600; min-height: 1.4em; margin-bottom: 8px; font-size: .92rem; }

/* Standardize the RSVP Yes/No Buttons (Segmented Control) */
.seg { display: grid; gap: 10px; margin-bottom: 18px; } @media (min-width: 520px) { .seg { grid-template-columns: 1fr 1fr; } }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { 
  display: flex; align-items: center; justify-content: center; text-align: center; 
  min-height: 54px; padding: 10px 14px; 
  border: 3px solid #F6F3EC; 
  border-radius: 999px; 
  cursor: pointer; font-weight: 600; 
  color: #FFFFFF;
  background: var(--coffee); 
  transition: all .15s; 
}
.seg input:checked + label { 
  background: var(--coffee-2); 
  border-color: var(--gold); 
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(91,74,46,.25); 
}
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Old stepper kept for backward compatibility */
.stepper { display: grid; grid-template-columns: 54px 1fr 54px; gap: 8px; } .stepper button { min-height: 54px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-size: 1.5rem; cursor: pointer; color: var(--gold-deep); }
.stepper input { text-align: center; font-size: 1.4rem; font-weight: 600; min-height: 54px; -moz-appearance: textfield; } .stepper input::-webkit-inner-spin-button { appearance: none; }

.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 300; display: grid; gap: 8px; width: min(92vw, 420px); }
@media (min-width: 900px) { .toasts { bottom: 28px; } }
.toast { background: var(--coffee); color: #FFFFFF; padding: 13px 18px; border-radius: 14px; box-shadow: var(--shadow); border-left: 5px solid var(--gold); font-weight: 500; } .toast.err { border-left-color: #ff8a7a; }

/* ---------- Cover ---------- */
.cover {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; 
  text-align: center; padding: 28px;
  color: var(--ink);
  background-color: #F6F3EC;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cdefs%3E%3Cfilter id='emboss'%3E%3CfeDropShadow dx='1' dy='2' stdDeviation='1' flood-color='%23000' flood-opacity='0.08'/%3E%3CfeDropShadow dx='-1' dy='-1' stdDeviation='1' flood-color='%23fff' flood-opacity='0.9'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23emboss)' fill='none' stroke='%23EBE5D8' stroke-width='2'%3E%3Ccircle cx='60' cy='60' r='40'/%3E%3Ccircle cx='60' cy='60' r='30'/%3E%3Cpath d='M60 10 L70 20 L60 30 L50 20 Z'/%3E%3Cpath d='M60 110 L70 100 L60 90 L50 100 Z'/%3E%3Cpath d='M10 60 L20 50 L30 60 L20 70 Z'/%3E%3Cpath d='M110 60 L100 50 L90 60 L100 70 Z'/%3E%3Cpath d='M25 25 L35 35 M95 95 L85 85 M25 95 L35 85 M95 25 L85 35' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  transition: transform 1s cubic-bezier(.77, 0, .18, 1), visibility 0s 1s;
}
.cover::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: linear-gradient(180deg, transparent, #d8ceb8 12%, #d8ceb8 88%, transparent);
  transform: translateX(-.5px); pointer-events: none;
}
.cover.open { transform: translateY(-101%); visibility: hidden; }

/* =========================================================
   COVER PAGE: PERFECT COMPACT ARCH (NO EMPTY SPACE)
   ========================================================= */

.cover {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; 
  text-align: center; padding: 20px;
  background-color: #F6F3EC;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cdefs%3E%3Cfilter id='emboss'%3E%3CfeDropShadow dx='1' dy='2' stdDeviation='1' flood-color='%23000' flood-opacity='0.08'/%3E%3CfeDropShadow dx='-1' dy='-1' stdDeviation='1' flood-color='%23fff' flood-opacity='0.9'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23emboss)' fill='none' stroke='%23EBE5D8' stroke-width='2'%3E%3Ccircle cx='60' cy='60' r='40'/%3E%3Ccircle cx='60' cy='60' r='30'/%3E%3Cpath d='M60 10 L70 20 L60 30 L50 20 Z'/%3E%3Cpath d='M60 110 L70 100 L60 90 L50 100 Z'/%3E%3Cpath d='M10 60 L20 50 L30 60 L20 70 Z'/%3E%3Cpath d='M110 60 L100 50 L90 60 L100 70 Z'/%3E%3Cpath d='M25 25 L35 35 M95 95 L85 85 M25 95 L35 85 M95 25 L85 35' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}
.cover.open { transform: translateY(-101%); visibility: hidden; transition: transform 1s cubic-bezier(.77, 0, .18, 1), visibility 0s 1s; }

/* The Compact Arch Card */
.cover-inner {
  position: relative;
  width: 100%;
  max-width: 360px; /* Slightly narrower for a better arch */
  
  /* THE MAGIC: No fixed height, only padding. It hugs the text. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  border: 1.5px solid #d8ceb8;
  border-radius: 180px 180px 20px 20px; /* The Arch */
  
  background: #fdfaf3;
  box-shadow:
    inset 0 0 0 6px #fdfaf3,
    inset 0 0 0 7px #e5dcc6,
    inset 0 0 0 13px #fdfaf3,
    inset 0 0 0 14px #e5dcc6,
    0 20px 50px #0000001a;
  z-index: 3;
}

/* The Medallion in the center */
.cover-oval {
  width: 160px; 
  height: 220px;
  margin: 10px 0 20px;
  border-radius: 50%;
  background: #F6F3EC;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 6px #E8E1D3, inset 0 0 0 8px #F6F3EC, inset 0 0 25px rgba(90,75,50,0.1), -8px -8px 20px #ffffff, 8px 8px 25px rgba(90,75,50,0.18);
  position: relative;
  z-index: 2;
}
.cover-oval::before {
  content: ''; position: absolute; inset: 16px;
  border-radius: 50%;
  border: 2px dotted #D8CEB8;
  opacity: 0.9;
}
.cover-mono {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #EFE9DB);
  display: flex; align-items: center; justify-content: center;
  white-space: nowrap;
  font-family: var(--f-script); 
  font-size: 1.6rem;
  color: #3b2c15;
  line-height: 1; padding-top: 5px;
  box-shadow: inset 3px 3px 6px rgba(0,0,0,0.15), inset -3px -3px 6px #fff, 0 5px 15px rgba(0,0,0,0.1), 0 0 0 4px #F6F3EC, 0 0 0 5px #D8CEB8;
  z-index: 2;
}

/* Ensure text is on top */
.cover-inner > * {
  position: relative;
  z-index: 5;
}

/* Text Protection */
.cover .guest {
  background: #fdfaf3;
  padding: 4px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

/* 3. The Flowers (Now outside the card, floating on the screen) */
.cover-floral {
  position: absolute;
  top: 5%; left: -20px; /* Positioned outside */
  width: 180px; height: 240px;
  background-image: url('../assets/flower-branch.png'); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
  z-index: 4; 
}

.cover-floral-br {
  position: absolute;
  bottom: 5%; right: -20px; /* Positioned outside */
  width: 180px; height: 180px;
  background-image: url('../assets/flower-cluster.png'); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  z-index: 4;
}

/* Mobile Adjustments */
@media (max-width: 500px) {
  .cover-inner {
    padding: 30px 16px;
    border-radius: 130px 130px 16px 16px;
  }
  .cover-floral {
    width: 140px; height: 200px;
    top: 2%; left: -10px;
  }
  .cover-floral-br {
    width: 140px; height: 140px;
    bottom: 2%; right: -10px;
  }
}

/* ---------- Navigation ---------- */
.nav { position: fixed; z-index: 90; inset: auto 0 0 0; display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(253, 251, 246, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 2px 8px; color: var(--muted); text-decoration: none; font-size: .66rem; font-weight: 500; }
.nav a[aria-current] { color: var(--gold-deep); } .nav a[aria-current] .ic { stroke: var(--gold-deep); stroke-width: 2.2; }
.tools { position: fixed; z-index: 130; bottom: calc(78px + env(safe-area-inset-bottom)); right: 12px; display: flex; flex-direction: column-reverse; gap: 8px; }
.tool { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--ivory); color: var(--gold-deep); font-weight: 600; font-size: .78rem; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(90,75,50,0.15); }
.tool .ic { width: 19px; height: 19px; } .tool .slash { position: absolute; width: 26px; height: 2px; background: var(--err); transform: rotate(-45deg); } .tool[aria-pressed=true] .slash { display: none; }
@media (min-width: 900px) {
  .nav { inset: 0 0 auto 0; height: 66px; grid-template-columns: none; display: flex; justify-content: center; gap: 4px; border: 0; border-bottom: 1px solid var(--line); padding: 0; }
  .nav a { flex-direction: row; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; padding: 0 16px; } .nav .ic { display: none; }
  .nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--gold); } .tools { top: 12px; bottom: auto; right: 22px; flex-direction: row; } .nav a { min-height: 66px; align-items: center; }
}

/* =========================================================
   HERO PAGE: RAISED OVAL MEDALLION (MATCHING REFERENCE)
   ========================================================= */

.hero {
  min-height: 100svh; padding: 92px 20px 110px;
  display: flex; flex-direction: column; 
  align-items: center; justify-content: center; /* This centers everything */
  text-align: center; gap: 12px;
  color: var(--ink);
  background: radial-gradient(ellipse at 50% 0%, #F4EEDF 0%, transparent 60%), var(--emerald) var(--pat-dark);
  position: relative;
}

/* The Outer Oval Frame */
/* The Outer Oval Frame (Now just a clean white shape) */
.arch { 
  position: relative;
  width: min(62vw, 260px); 
  height: min(82vw, 340px); 
  border-radius: 50%; 
  
  /* REMOVED the gold border and heavy 3D box-shadows */
  border: none;
  box-shadow: inset 0 0 15px rgba(90,75,50,0.05); /* Very soft inner shadow */
  
  /* Shrink the oval slightly so the lace wraps around the outside */
  padding: 5px; 
  margin: 6px 0 20px; 
  display: grid; 
  place-items: center;
  background: #F6F3EC;
  z-index: 2; /* Keep it above the background */
}

/* The Lace Wrap (Now wrapping the white oval perfectly) */
.hero-lace {
  position: absolute;
  /* Push the lace out so it surrounds the white oval */
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  
  /* The lace is larger than the oval */
  width: 120%; 
  height: 115%; 
  
  background-image: url('../assets/lace.png');
  background-size: 100% 100%; /* Stretch to perfectly fit the oval shape */
  background-repeat: no-repeat;
  background-position: center;
  
  pointer-events: none;
  mix-blend-mode: multiply; /* Hides the white background of the image */
  z-index: 1; /* Sits BEHIND the white oval */
}

/* Add this new code targeting the arch container */
.arch::after {
  content: '';
  position: absolute;
  
  /* Position it at the bottom center of the oval */
  bottom: -45px; /* Pulls it down below the oval */
  left: 50%; 
  
  width: 90px;  
  height: 120px; 
  
  background-image: url('../assets/pearls.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top; 
  
  /* z-index: 4 puts it in front of the white oval and the lace */
  z-index: 4; 
  
  pointer-events: none;
  
  /* Center it and rotate slightly for a natural look */
  transform: translateX(-50%) rotate(-15deg);
}

/* Keep the inner initials safe */
.arch-in { 
  width: 100%; 
  height: 100%; 
  border-radius: 50%; 
  overflow: hidden; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  position: relative;
  z-index: 4; 
}

/* The Raised Medallion inside */
.arch-in .mono { 
  width: clamp(90px, 25vw, 120px); 
  height: clamp(90px, 25vw, 120px); 
  border-radius: 50%; 
  background: linear-gradient(135deg, #ffffff, #EFE9DB); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  white-space: nowrap; 
  font-family: var(--f-script); 
  font-size: clamp(2rem, 6vw, 2.6rem); 
  color: #3b2c15; 
  line-height: 1; 
  padding-top: 5px; 
  
  /* The deep 3D button effect */
  box-shadow: 
    inset 2px 2px 6px rgba(0,0,0,0.15), 
    inset -2px -2px 6px #fff, 
    0 5px 15px rgba(0,0,0,0.1), 
    0 0 0 4px #F6F3EC, 
    0 0 0 5px #D8CEB8; 
  z-index: 2; 
}

/* If you have a photo, it fills the oval */
.arch-in img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}
.kicker { letter-spacing: .26em; text-transform: uppercase; font-size: .78rem; color: var(--gold-deep); max-width: 30ch; }
.hero-date { font-family: var(--f-serif); font-size: 1.5rem; font-weight: 500; letter-spacing: .04em; margin-top: 4px; }
.countdown { display: flex; gap: 10px; margin: 14px 0 20px; justify-content: center; flex-wrap: wrap; }
.cd-box { min-width: 70px; padding: 10px 6px 8px; border: 1px solid #c9a55a66; border-radius: 14px; background: #ffffffa8; box-shadow: inset 1px 1px 3px #fff, 1px 1px 5px rgba(90,75,50,0.1); }
.cd-box b { display: block; font-family: var(--f-serif); font-size: 2.1rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); } 
.cd-box span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.cd-done { font-family: var(--f-serif); font-size: 1.4rem; color: var(--gold-deep); }

/* ---------- Invitation Hosts ---------- */
.hosts-line { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); margin-top: 10px; }
.hosts { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--f-serif); }
.hosts b, .hosts span { display: block; font-size: 1.4rem; color: var(--ink); font-weight: 500; line-height: 1.3; }
.hosts .and { font-style: italic; color: var(--gold-deep); font-size: 1.2rem; margin: 2px 0; }
@media (min-width: 720px) {
  .hosts { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; text-align: center; }
  .hosts .and { font-size: 1.5rem; margin: 0; }
}

/* ---------- Events ---------- */
.tabs { display: flex; gap: 6px; justify-content: center; padding: 5px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; margin: 0 auto 24px; overflow-x: auto; }
.tab { 
  border: 3px solid #F6F3EC; 
  background: var(--coffee); 
  padding: 11px 24px; 
  border-radius: 999px; 
  font-weight: 600; 
  color: #FFFFFF; 
  cursor: pointer; 
  white-space: nowrap; 
  transition: all 0.2s; 
}
.tab[aria-selected=true] { 
  background: var(--coffee-2); 
  border-color: var(--gold); 
  box-shadow: 0 4px 12px rgba(91,74,46,.25); 
}
.ev-panel { display: flex; flex-direction: column; align-items: center; max-width: 800px; margin: 0 auto; gap: 22px; }
.ev-info { width: 100%; text-align: center; }
.ev-info h3 { font-family: var(--f-serif); font-size: 2.1rem; color: var(--ink); line-height: 1.1; margin-bottom: 14px; }
.meta { display: inline-grid; text-align: left; grid-template-columns: 92px 1fr; gap: 3px 14px; margin-bottom: 24px; } 
.meta dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); padding-top: 4px; font-weight: 600; } .meta dd { margin: 0 0 10px; } .meta dd small { display: block; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; justify-content: center; }
.timeline { text-align: left; display: inline-block; margin: 0 auto; list-style: none; padding: 0 0 0 20px; border-left: 2px solid var(--gold); } 
.timeline li { position: relative; padding: 0 0 14px 18px; } .timeline li::before { content: ''; position: absolute; left: -27px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--gold); } .timeline b { color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 8px; }
.ev-info h4 { font-family: var(--f-serif); font-size: 1.3rem; color: var(--ink); margin: 6px 0 12px; }
.map { min-height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); outline: 1px solid var(--gold); outline-offset: 6px; box-shadow: var(--shadow); background: var(--cream); width: 100%; max-width: 700px; margin-top: 20px; } 
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Gallery ---------- */
.gal { columns: 2; column-gap: 12px; } @media (min-width: 760px) { .gal { columns: 3; } }
.gal button { display: block; width: 100%; padding: 0; margin: 0 0 12px; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; } .gal img { width: 100%; transition: transform .4s; } .gal button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 250; background: #000000e6; display: grid; place-items: center; padding: 20px; } .lightbox[hidden] { display: none; } .lightbox img { max-height: 90vh; border-radius: 10px; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* ---------- RSVP pass ---------- */
.rsvp-for { color: var(--muted); margin-top: 10px; } .rsvp-for b { color: var(--gold-deep); font-weight: 600; } .deadline { color: var(--gold-deep); font-size: .9rem; margin-top: 4px; }
.done { text-align: center; } .done h3 { font-family: var(--f-serif); font-size: 1.9rem; line-height: 1.2; color: var(--ink); margin-bottom: 4px; } .done p { color: var(--muted); }
.pass { margin: 20px auto 14px; max-width: 320px; border: 1.5px solid var(--gold); border-radius: 18px; background: linear-gradient(180deg, #fffdf8, #f8f0de); overflow: hidden; text-align: center; }
.pass .top { background: var(--coffee); color: #FFFFFF; padding: 10px; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; }
.pass .body { padding: 18px 18px 14px; border-bottom: 2px dashed var(--line); } .pass .body b { font-family: var(--f-serif); font-size: 1.5rem; color: var(--ink); display: block; line-height: 1.2; overflow-wrap: anywhere; }
.pass .qr { width: 168px; margin: 16px auto 8px; padding: 10px; background: #fff; border-radius: 12px; border: 1px solid var(--line); } .pass .code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .3em; font-size: 1.05rem; color: var(--ink); padding: 4px 0 14px; }

/* ---------- Wishes ---------- */
.two { display: grid; gap: 24px; } @media (min-width: 900px) { .two { grid-template-columns: 370px 1fr; align-items: start; } .wish-form { position: sticky; top: 90px; } }
fieldset.themes { border: 0; padding: 0; margin: 0 0 16px; } legend { margin-bottom: 8px; padding: 0; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .swatches input { position: absolute; opacity: 0; pointer-events: none; }
.sw { display: grid; place-items: center; min-height: 52px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--ink); } .swatches input:checked + .sw { border-color: var(--coffee); box-shadow: 0 0 0 3px rgba(201,165,90,.5); } .swatches input:focus-visible + .sw { outline: 3px solid var(--focus); outline-offset: 2px; }
.t-sage { background: var(--sage-soft); } 
.t-blush { background: var(--blush); } 
.t-purple { background: #EBE3F5; }
.t-blue { background: #DDE8F5; }
.t-green { background: #E1F0E5; }
.t-yellow { background: #FBF4D9; }
.wall { columns: 1; column-gap: 14px; } @media (min-width: 540px) { .wall { columns: 2; } }
.wish { border: 1px solid rgba(122, 92, 30, .18); break-inside: avoid; margin: 0 0 14px; padding: 20px 18px 16px; border-radius: 16px; box-shadow: 0 2px 10px rgba(31,59,50,.08); position: relative; animation: pop .5s ease both; }
.wish p { font-family: var(--f-serif); font-size: 1.15rem; line-height: 1.45; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; } .wish footer { margin-top: 10px; font-family: var(--f-script); font-size: 1.7rem; color: var(--gold-deep); line-height: 1.1; overflow-wrap: anywhere; } .wish small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .08em; }
.wish::before { content: '“'; position: absolute; top: -4px; left: 10px; font-family: var(--f-serif); font-size: 3.4rem; color: var(--gold); opacity: .6; line-height: 1; }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; column-span: all; font-family: var(--f-serif); font-size: 1.2rem; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ---------- Songs / Gift / Footer ---------- */
.playlist { margin-top: 26px; } .playlist h3 { font-family: var(--f-serif); font-size: 1.5rem; color: var(--ink); margin-bottom: 10px; text-align: center; } .playlist iframe { width: 100%; border: 0; border-radius: 14px; }
.gift .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; } .gift .row:last-of-type { border-bottom: 0; }
.gift .row small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; } .gift .row b { font-size: 1.15rem; color: var(--ink); overflow-wrap: anywhere; } .gift .qr { margin: 18px auto 0; max-width: 220px; border-radius: 12px; border: 1px solid var(--line); } .gift .qrcap { font-size: .85rem; color: var(--muted); margin-top: 8px; }

.footer { text-align: center; display: flex; flex-direction: column; align-items: center; padding: 56px 20px calc(130px + env(safe-area-inset-bottom)); background-image: none; background-color: var(--emerald-2); border-top: 1px solid var(--line); color: var(--muted); }
.footer p, .footer .hashtag, .footer .foot-contact { text-align: center; width: 100%; }
.footer .names.small { margin-bottom: 10px; color: var(--gold-deep); }
.hashtag { color: var(--gold-light); letter-spacing: .2em; font-size: .9rem; } .foot-contact { margin-top: 14px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; } .contacts a { color: var(--ink); border: 1px solid #c9a55a77; border-radius: 999px; padding: 9px 18px; text-decoration: none; font-size: .9rem; } .contacts a:hover { background: #0000000a; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .cover { transition: none; } .wish { animation: none; } .btn { transition: none; } }

/* =========================================================
   GUARANTEED FIX: BACKGROUND FLOWERS + FROSTED GLASS CARD
   ========================================================= */

/* 1. Put the flowers directly into the section background */
#invite {
  background-image: url('../assets/flower-branch.png'), url('../assets/flower-cluster.png');
  background-position: top left, bottom right;
  background-repeat: no-repeat, no-repeat;
  background-size: 250px, 300px;
}

#event {
  background-image: url('../assets/flower-head.png');
  background-position: top right;
  background-repeat: no-repeat;
  background-size: 200px;
}

#rsvp {
  background-image: url('../assets/flower-branch.png'), url('../assets/flower-cluster.png');
  background-position: top left, bottom right;
  background-repeat: no-repeat, no-repeat;
  background-size: 200px, 250px;
}

#wishes {
  background-image: url('../assets/flower-branch.png');
  background-position: top left;
  background-repeat: no-repeat;
  background-size: 200px;
}

#songs {
  background-image: url('../assets/flower-cluster.png');
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: 250px;
}

/* 2. The Frosted Glass Shield for the Card */
.card {
  background: rgba(255, 255, 255, 0.85) !important; 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px); 
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(90, 75, 50, 0.1);
  position: relative;
  z-index: 2;
}

/* 3. Protect the text inputs so you can read what you type */
.card input, .card textarea, .card select {
  background: #ffffff !important;
}

/* 4. Protect the text headings (give them a slight background blur) */
.sec-head, .lead, .verse, .hosts {
  position: relative;
  z-index: 2;
  /* Optional: Add a soft text-shadow so it pops against the flowers */
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.8);
}

/* 5. Mobile Adjustments */
@media (max-width: 768px) {
  /* Make flowers much smaller on phones */
  #invite, #rsvp, #wishes, #songs {
    background-size: 120px, 150px;
  }
  #event {
    background-size: 120px;
  }
}

/* Mobile fix for Cover Page */
@media (max-width: 500px) {
  .cover {
    padding: 10px; /* Less padding on phones */
  }
  .cover-inner {
    padding: 30px 16px; /* Smaller padding */
    border-radius: 150px 150px 20px 20px; /* Smaller arch so it doesn't look weird */
  }
  .cover-floral {
    width: 140px; 
    height: 200px;
    top: -10px; 
    left: -20px; /* Pull it in so it doesn't get cut off */
  }
  .cover-inner::before {
    width: 140px; 
    height: 140px;
    bottom: -10px; 
    right: -20px;
  }
}