/* ==========================================================
   Mark & Gicah — wedding site
   Palette: dusty blue (replaces the original brown)
   ========================================================== */
:root {
  /* Main Color */
  --bg-main: #FFFFFF;    /* Pure white for primary backgrounds */
  --pale: #F7FAFC;       /* Very subtle off-white/light blue for alternating sections */
  
  /* Secondary Colors */
  --dusty: #8BA4B5;      /* Dusty blue for accents, icons, and buttons */
  --light-blue: #B3CDE0; /* Light blue for highlights and borders */
  --dusty-dk: #658196;   /* Medium dusty blue for headings and monograms */
  
  /* Text Colors */
  --ink: #3A4F5E;        /* Dark dusty navy for readable text */
  --ink-deep: #263642;   /* Darker text shade */
  --mist: #D9E4EC;       /* Soft mist blue */
  
  /* Fonts and Spacing remain unchanged */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Cormorant Garamond", Georgia, serif; /* Using the same serif to unify the design */
  --pad: clamp(20px, 8vw, 120px);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button { 
  font: inherit; 
  color: inherit; 
  cursor: pointer; 
}

:focus-visible { 
  outline: 2px solid var(--mist); 
  outline-offset: 3px; 
}

.script { 
  font-family: var(--script); 
  font-style: italic;     /* Adds the elegant slant */
  font-weight: 500; 
  line-height: 1.1; 
}
.dark { 
  background: var(--ink); 
  color: #fff; 
}

/* paper texture, used on dark hero + location band */
.textured { 
  position: relative; 
  background-color: var(--ink); 
  color: #fff; 
  isolation: isolate; 
}

.textured::before {
  content: ""; 
  position: absolute; 
  inset: 0; 
  z-index: -1; 
  pointer-events: none;
  opacity: .32; 
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.textured--mid { 
  background-color: var(--dusty); 
}

/* ---------- navigation ---------- */
.site-nav {
  position: fixed; /* Changed from absolute to fixed */
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 100; /* Increased to ensure it stays above all content */
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 26px var(--pad); 
  color: #fff; 
  font-family: var(--serif);
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* New class added when scrolling */
.site-nav.scrolled {
  background-color: var(--ink); /* Adds the dark blue background */
  padding: 16px var(--pad); /* Makes the header slightly slimmer when scrolling */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Adds a subtle shadow */
}

.brand { 
  font-size: .95rem; 
  letter-spacing: .04em; 
  text-transform: uppercase; 
}

.site-nav ul { 
  display: flex; 
  gap: clamp(24px, 4vw, 56px); 
  font-size: .95rem; 
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; 
  font-family: var(--sans); 
  font-size: .7rem; 
  font-weight: 500;
  letter-spacing: .2em; 
  text-transform: uppercase; 
  color: #fff;
  padding: .85em 2.6em; 
  border: 1px solid currentColor; 
  border-radius: 999px;
  background: transparent; 
  transition: background .25s, color .25s;
}

.btn:hover { 
  background: #fff; 
  color: var(--ink); 
}

.btn--solid { 
  background: #fff; 
  color: var(--ink); 
  border-color: #fff; 
}

.btn--solid:hover { 
  background: var(--pale); 
}

/* ---------- monogram ---------- */
.mono { 
  display: inline-flex; 
  font-family: var(--script); 
  font-size: 4.6rem; 
  line-height: 1; 
  color: var(--mist); 
}

.mono span:last-child { 
  margin-left: -.2em; 
  margin-top: .22em; 
}

.mono--dusty { 
  color: var(--dusty); 
}

/* ---------- headings used on details page ---------- */
.serif-title {
  font-family: var(--serif); 
  font-weight: 400; 
  text-transform: uppercase;
  letter-spacing: .06em; 
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); 
  text-align: center;
}

.diamond { 
  display: block; 
  width: 10px; 
  height: 10px; 
  margin: 0 auto; 
  background: var(--dusty); 
  transform: rotate(45deg); 
}

/* ==========================================================
   HOME  (index.html)
   ========================================================== */
.hero {
  position: relative; 
  min-height: 88vh; 
  display: grid; 
  place-items: center;
  text-align: center; 
  color: #fff; 
  overflow: hidden;
  background: var(--ink) center / cover no-repeat;
}

.hero--home { 
  background-image: url("images/img1.jpg"); 
}

.hero::after {
  content: ""; 
  position: absolute; 
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 50, 63, .6), rgba(70, 105, 135, .35) 60%, rgba(34, 50, 63, .65));
}

.hero-inner { 
  position: relative; 
  z-index: 2; 
  padding: 130px 20px 80px; 
  animation: rise 1.4s ease both; 
}

.eyebrow { 
  font-size: .72rem; 
  letter-spacing: .3em; 
  text-transform: uppercase; 
  margin-bottom: 1rem; 
  font-weight: 400; 
}

.names { 
  font-size: clamp(3.4rem, 10vw, 8rem); 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  margin-bottom: 1.2rem; 
}

.hero-date { 
  font-family: var(--serif); 
  letter-spacing: .22em; 
  text-transform: uppercase; 
  font-size: .9rem; 
  margin-bottom: 2.2rem; 
}

.names .and { 
  font-size: .38em; 
  opacity: .85; 
  margin: -.1em 0; 
}

@keyframes rise { 
  from { opacity: 0; transform: translateY(18px); } 
  to { opacity: 1; transform: none; } 
}

/* tap the ring */
.ring { 
  position: relative; 
  margin-top: 11vh; 
  overflow: hidden; 
  --ring-x: 73%; 
  --ring-y: 52%; 
}

.ring > img { 
  width: 100%; 
  max-height: 92vh; 
  object-fit: cover; 
}

.ring-arc {
  position: absolute; 
  top: 3%; 
  right: 3%; 
  width: clamp(180px, 36%, 460px);
  overflow: visible; 
  pointer-events: none;
}

.ring-arc text {
  font-family: var(--serif); 
  font-size: 30px; 
  letter-spacing: 9px; 
  fill: var(--ink);
}

.ring-hotspot {
  position: absolute; 
  left: var(--ring-x); 
  top: var(--ring-y); 
  width: 15%; 
  aspect-ratio: 1;
  transform: translate(-50%, -50%); 
  border-radius: 50%; 
  background: transparent; 
  border: 0;
}

.ring-hotspot::after {
  content: ""; 
  position: absolute; 
  inset: 18%; 
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .85); 
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse { 
  from { transform: scale(.7); opacity: .9; } 
  to { transform: scale(1.5); opacity: 0; } 
}

.spark {
  position: absolute; 
  width: 10px; 
  height: 10px; 
  pointer-events: none; 
  z-index: 3;
  background: #fff; 
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: burst 1.1s ease-out forwards;
}

@keyframes burst {
  from { transform: translate(-50%, -50%) scale(.3); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(var(--s)) rotate(120deg); opacity: 0; }
}

.ring-note {
  position: absolute; 
  left: 50%; 
  bottom: 6%; 
  transform: translate(-50%, 12px); 
  opacity: 0;
  font-family: var(--script); 
  font-size: clamp(1.8rem, 4vw, 3rem); 
  color: #fff;
  text-shadow: 0 2px 18px rgba(20, 35, 50, .6); 
  transition: opacity .6s, transform .6s; 
  pointer-events: none; 
  white-space: nowrap;
}

.ring-note.show { 
  opacity: 1; 
  transform: translate(-50%, 0); 
}

/* the day */
.story { 
  padding: clamp(60px, 10vw, 130px) var(--pad); 
}

.story-grid { 
  max-width: 920px; 
  margin: 0 auto; 
  display: grid; 
  grid-template-columns: 1fr; /* Default to 1 column (vertical) for mobile */
  gap: clamp(30px, 6vw, 90px); 
  align-items: center; 
}

/* Switch to 2 columns for desktop screens */
@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr 1fr; 
  }
}

.collage { 
  position: relative; 
  aspect-ratio: .86; 
  width: 100%; 
}

.polaroid { 
  position: absolute; 
  box-shadow: 0 10px 30px rgba(10, 20, 30, .35); 
}

.polaroid.p1 { left: 0; top: 0; width: 56%; }
.polaroid.p2 { right: 0; bottom: -5%; width: 56%; }

.story-text { 
  text-align: center; 
  font-size: .78rem; 
}
.story-text .mono { margin-bottom: 2.2rem; }
.story-text .date { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; }
.story-text .sub { font-size: .66rem; opacity: .9; }
.story-text .venue { font-family: var(--serif); font-size: 1.05rem; margin-top: 2rem; }
.story-text .program { margin-top: 2rem; display: grid; gap: .5rem; }
.story-text b { font-weight: 700; }

/* countdown */
.countdown {
  position: relative; 
  min-height: 78vh; 
  display: grid; 
  place-items: center; 
  text-align: center; 
  color: #fff;
  background: var(--ink) url("images/img5.jpg") center / cover no-repeat;
}

.countdown::after { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(180deg, rgba(34, 50, 63, .5), rgba(60, 95, 125, .15) 55%, rgba(34, 50, 63, .3)); 
}

.countdown > div { 
  position: relative; 
  z-index: 2; 
}

.countdown .script { 
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); 
  color: var(--pale); 
  margin-bottom: .3rem; 
}

.cd-row { 
  display: flex; 
  justify-content: center; 
  align-items: flex-start; 
  gap: clamp(10px, 2.4vw, 30px); 
}

.cd-row i { 
  font-style: normal; 
  font-family: var(--serif); 
  font-size: clamp(2.6rem, 7vw, 4.6rem); 
  line-height: 1.1; 
}

.cd-unit { 
  display: flex; 
  flex-direction: column; 
  min-width: 1.4em; 
}

.cd-unit strong { 
  font-family: var(--serif); 
  font-weight: 400; 
  font-size: clamp(2.6rem, 7vw, 4.6rem); 
  line-height: 1.1; 
  font-variant-numeric: tabular-nums; 
}

.cd-unit small { 
  font-family: var(--serif); 
  font-size: clamp(.8rem, 1.6vw, 1.05rem); 
}

.cd-unit:last-child strong { color: var(--mist); }

/* video */
.film { 
  padding: clamp(60px, 14vh, 160px) 20px; 
  display: grid; 
  place-items: center; 
}

.film-frame { 
  position: relative; 
  width: min(820px, 100%); 
  aspect-ratio: 16 / 9; 
  background: var(--ink) center / cover no-repeat; 
  border: 0; 
  display: block; 
}

.film-frame iframe { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  border: 0; 
}

.film-play {
  position: absolute; 
  inset: 0; 
  margin: auto; 
  width: 76px; 
  height: 54px; 
  border-radius: 14px; 
  border: 0;
  background: rgba(34, 50, 63, .82); 
  display: grid; 
  place-items: center; 
  transition: background .2s;
}

.film-play:hover { background: var(--dusty); }
.film-play::before { 
  content: ""; 
  border-left: 20px solid #fff; 
  border-top: 12px solid transparent; 
  border-bottom: 12px solid transparent; 
  margin-left: 5px; 
}

/* gallery */
.gallery { 
  padding: clamp(50px, 8vw, 100px) var(--pad) 40px; 
  text-align: center; 
}

.gallery .script { 
  font-size: clamp(2rem, 4vw, 2.8rem); 
  color: var(--pale); 
  margin-bottom: 1.6rem; 
}

/* Masonry Gallery */
.masonry-grid {
  max-width: 1000px;
  margin: 0 auto 4rem;
  padding: 0 16px;
  column-count: 2; /* Displays 3 columns on desktop */
  column-gap: 16px; /* Spacing between columns */
}

.masonry-grid button {
  display: block;
  width: 100%;
  margin-bottom: 16px; /* Spacing below each image */
  border: 0;
  background: none;
  padding: 0;
  break-inside: avoid; /* Prevents images from being split across columns */
  overflow: hidden;
  border-radius: 6px; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
}

.masonry-grid img {
  width: 100%;
  height: auto; 
  display: block;
  transition: transform 0.5s ease;
}

.masonry-grid button:hover img {
  transform: scale(1.05); /* Soft zoom effect on hover */
}

@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.foot-nav { 
  display: flex; 
  gap: 12px; 
  justify-content: center; 
  margin-top: 1.4rem; 
}

.foot-nav .btn { 
  font-size: .6rem; 
  padding: .7em 2.4em; 
  background: #fff; 
  color: var(--ink); 
  border-color: #fff; 
}

.foot-nav .btn:hover { 
  background: var(--mist); 
  border-color: var(--mist); 
}

dialog.lightbox { 
  border: 0; 
  background: transparent; 
  max-width: 94vw; 
  max-height: 94vh; 
  margin: auto; 
}

dialog.lightbox::backdrop { 
  background: rgba(20, 32, 44, .88); 
}

dialog.lightbox img { 
  max-height: 90vh; 
  margin: auto; 
}

/* ==========================================================
   DETAILS  (details.html)
   ========================================================== */
.hero--details { 
  text-align: center; 
  padding: 130px 20px 70px; 
}

.hero--details h1 { 
  font-size: clamp(2.4rem, 5vw, 3.6rem); 
  color: var(--pale); 
}

.hero--details img { 
  width: min(520px, 82%); 
  margin: 1.4rem auto 0; 
}

.full-photo { width: 100%; margin: 0; }
.full-photo img { width: 100%; }
.full-photo--bw img { filter: grayscale(1); }

.attire { padding: clamp(50px, 7vw, 90px) var(--pad); }
.serif-title + .attire-grid { margin-top: 2.6rem; }
.strict { 
  text-align: center; 
  font-style: italic; 
  font-size: .8rem; 
  letter-spacing: .08em; 
  text-transform: uppercase; 
  margin: .8rem 0 2.6rem; 
}

.attire-grid { 
  max-width: 860px; 
  margin: 0 auto; 
  display: grid; 
  grid-template-columns: 1fr 1.25fr; 
  gap: 40px; 
  align-items: center; 
}

.attire-list { display: grid; gap: .7rem; margin-bottom: 0; }
.attire-list div { display: grid; grid-template-columns: 6.6rem 1fr; gap: .8rem; font-size: .78rem; }
.attire-list dt { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .68rem; }
.colors-title { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem; }
.attire p { font-size: .78rem; line-height: 1.55; }
.swatches { display: flex; gap: 14px; margin-top: 1.2rem; }
.swatches i { width: 74px; height: 22px; display: block; border-radius: 4px; }

.timeline { padding: clamp(50px, 7vw, 90px) var(--pad); text-align: center; }
.timeline .mono { margin-bottom: .6rem; }
.timeline ul { 
  max-width: 640px; 
  margin: 2.2rem auto 3rem; 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
  padding: 0;
}
.timeline svg { 
  width: 54px; 
  height: 54px; 
  margin: 0 auto .7rem; 
  stroke: var(--ink); 
  fill: none; 
  stroke-width: 1.2; 
  stroke-linecap: round; 
  stroke-linejoin: round; 
}
.timeline li strong { display: block; font-size: .78rem; font-weight: 600; }
.timeline li span { font-size: .74rem; font-weight: 300; }
.timeline .diamond { margin: 0 auto 2.4rem; }

.gift { max-width: 460px; margin: 1.4rem auto 2.4rem; font-size: .8rem; line-height: 1.75; color: #4b5f72; }
.gift p + p { margin-top: .8rem; font-size: .74rem; }

.location { padding: clamp(50px, 7vw, 90px) var(--pad); text-align: center; }
.map { max-width: 720px; margin: 2rem auto 1.6rem; aspect-ratio: 16 / 8; background: var(--mist); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.location strong { display: block; font-size: .95rem; font-weight: 700; }
.location span { font-size: .82rem; font-weight: 300; }

.snap { padding: clamp(50px, 7vw, 90px) var(--pad); text-align: center; }
.snap p { font-size: .82rem; }
.snap .tag { display: block; margin: .4rem 0 2.4rem; font-weight: 700; font-size: .95rem; letter-spacing: .02em; }

/* ==========================================================
   RSVP  (rsvp.html)
   ========================================================== */
.rsvp-hero { 
  position: relative; 
  min-height: 100vh; 
  min-height: 100svh; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
  color: #fff; 
  padding: 25vh 20px 60px; 
  overflow: hidden; 
  background: var(--ink); 
}
.rsvp-hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.rsvp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34, 50, 63, .6), rgba(34, 50, 63, .38) 45%, rgba(20, 30, 42, .25)); }
.rsvp-hero > div { position: relative; z-index: 2; animation: rise 1.4s ease both; }
.rsvp-hero h1 { font-size: clamp(3.6rem, 9vw, 6.8rem); margin-bottom: 2rem; }
.rsvp-hero .btn--big { width: min(410px, 84vw); padding: 1.7em 1em; font-size: .78rem; letter-spacing: .12em; text-transform: none; }
.rsvp-hero .lead { margin-top: 2.2rem; font-weight: 300; font-size: 1rem; opacity: .9; }
.rsvp-hero .due { font-weight: 700; font-size: 1.02rem; margin-top: .3rem; }
.rsvp-hero .fine { margin-top: 1.4rem; font-size: .8rem; font-weight: 300; opacity: .85; max-width: 420px; }
.rsvp-hero .btn--big { text-align: center; line-height: 1.2; }


/* ==========================================================
   CONTENT SECTIONS (welcome, story, attire, FAQ, gift, contact)
   ========================================================== */

/* full screen image banner */
.banner-image {
  height: 100vh;
  height: 100svh; 
  overflow: hidden;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}   

.welcome { padding: clamp(100px, 11vw, 100px) var(--pad) clamp(60px, 3vw, 60px); text-align: center; max-width: 760px; margin: 0 auto; }
.welcome h2 { font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--dusty-dk); margin-bottom: 1.4rem; }
.welcome .lead { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.6; margin-bottom: 1rem; }
.welcome p { font-size: .95rem; color: #4b5f72; max-width: 560px; margin: 0 auto; }
.welcome p.lead { max-width: none; color: var(--ink); margin-bottom: 1rem; }
.story-text .note { margin-top: 1.8rem; font-size: .66rem; opacity: .85; }

.love-story { padding: clamp(60px, 9vw, 120px) var(--pad); background: var(--pale); }
.love-story .inner { max-width: 640px; margin: 0 auto; }
.love-story h2 { text-align: center; font-size: clamp(3rem, 7vw, 5rem); color: var(--ink); }
.love-story .dek { text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin: .8rem 0 .4rem; }
.love-story .sub { text-align: center; font-size: .85rem; color: #4b5f72; margin-bottom: 2.6rem; }
.love-story p { font-family: var(--serif); font-size: 1.02rem; line-height: 1.85; margin-bottom: 1.3rem; }
.love-story p.pull { font-style: italic; font-size: 1.3rem; line-height: 1.5; text-align: center; color: var(--dusty-dk); margin: 2.2rem 0; }
.love-story .finale { text-align: center; font-family: var(--script); font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.2; margin-top: 2.4rem; }

.attire-group + .attire-group { margin-top: 1.8rem; }
.attire-group h3 { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; margin-bottom: .6rem; }
.attire .reminder { max-width: 620px; margin: 2.8rem auto 0; text-align: center; font-size: .8rem; line-height: 1.7; }
.attire .reminder strong { display: block; font-family: var(--serif); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .5rem; font-size: 1rem; }
.attire .reminder p + p { margin-top: .8rem; }
.swatches figure { display: grid; gap: .45rem; justify-items: start; margin: 0; }
.swatches figcaption { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }

.timeline-note { max-width: 460px; margin: -1rem auto 2.6rem; font-size: .78rem; color: #4b5f72; }

.venues { max-width: 900px; margin: 2.2rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.venue-card .map { margin: 0 0 1rem; max-width: none; aspect-ratio: 4 / 3; }
.venue-card p { font-size: .82rem; font-weight: 300; }

.unplugged { padding: clamp(50px, 7vw, 90px) var(--pad); text-align: center; }
.unplugged .copy { max-width: 560px; margin: 1.4rem auto 0; font-size: .9rem; line-height: 1.8; color: #3d5164; }
.unplugged .copy p + p { margin-top: 1rem; }
.unplugged .closing { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--dusty-dk); margin-top: 1.6rem; }

.faq { padding: clamp(50px, 7vw, 90px) var(--pad); background: var(--pale); }
.faq-list { max-width: 680px; margin: 2rem auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.4rem; line-height: 1; color: var(--dusty-dk); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 2rem 1.2rem 0; font-size: .88rem; line-height: 1.75; color: #3d5164; margin: 0; }

.gift-sec { padding: clamp(50px, 7vw, 90px) var(--pad); text-align: center; }
.gift-sec p { max-width: 440px; margin: 1.2rem auto 0; font-size: .88rem; line-height: 1.75; color: #4b5f72; }
.gift-sec img { width: min(240px, 70%); margin: 1.6rem auto 0; border: 1px solid var(--mist); padding: 10px; background: #fff; }

.contact { padding: clamp(50px, 7vw, 90px) var(--pad) clamp(40px, 6vw, 70px); text-align: center; }
.contact p { font-size: .88rem; margin: 0; }
.contact .people { display: grid; gap: .2rem; margin: 1.6rem 0 1rem; font-family: var(--serif); font-size: 1.15rem; }
.contact .nums { display: flex; gap: 1.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.4rem; font-size: .9rem; }
.contact .nums a { border-bottom: 1px solid rgba(255, 255, 255, .4); }
.contact .mono { margin-bottom: 1.6rem; }


/* ==========================================================
   RSVP Form Modal
   ========================================================== */
dialog.rsvp-modal {
  border: 0;
  border-radius: 8px;
  background: var(--bg-main);
  color: var(--ink);
  width: 90%;
  max-width: 500px;
  margin: auto;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

dialog.rsvp-modal::backdrop {
  background: rgba(20, 32, 44, 0.88);
}

.rsvp-modal h2 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  text-align: center;
  color: var(--dusty-dk);
  margin-bottom: 20px;
  margin-top: 0;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--ink);
  cursor: pointer;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--mist);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.9rem;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--dusty);
  border-color: var(--dusty);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-group label {
  font-weight: 400;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.rsvp-success {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dusty-dk);
  padding: 40px 0;
}

/* ==========================================================
   PURE HTML ANIMATED ENVELOPE (Dusty Blue Theme)
   ========================================================== */
.css-animated-invite {
  position: relative; 
  perspective: 1000px;
  margin: 100px auto 60px auto;
  width: 100%;
  max-width: 700px;
  min-height: 350px;
  display: flex;
  justify-content: center;
}

.css-envelope {
  position: relative;
  width: 480px;
  height: 250px;
  margin: 0 auto;
}

/* Envelope Base */
.css-env-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--dusty); 
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  z-index: 1;
}

.css-env-front {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 160px;
  background-color: var(--dusty-dk); 
  border-radius: 0 0 4px 4px;
  clip-path: polygon(0 0, 50% 35%, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
}

/* Base Card Styles */
.css-main-card, 
.css-details-card {
  position: absolute;
  bottom: 20px; 
  box-sizing: border-box;
  border-radius: 2px;
  opacity: 0; 
}

/* Main Dark Card (Taller, centered, straight) */
.css-main-card {
  width: 270px;
  height: 440px;
  left: 105px; /* Centered in 480px envelope */
  background-color: var(--ink); 
  color: #fff;
  padding: 35px 20px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
  animation: popUpMainCard 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
}

/* Light Blue Details Card (Angled right) */
.css-details-card {
  width: 220px;
  height: 340px;
  left: 210px; /* Shifted right */
  background-color: var(--light-blue); 
  color: var(--ink);
  padding: 30px 20px;
  z-index: 1;
  box-shadow: 5px -5px 15px rgba(0,0,0,0.1);
  animation: popUpDetailsCard 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.7s;
}

/* Typography Overrides */
.css-main-card .script-name {
  font-family: var(--script);
  font-size: 2.8rem;
  line-height: 1;
  margin: 15px 0;
}
.css-main-card .small-caps {
  font-size: 0.65em;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.6;
}
.css-main-card .invitation-text {
  font-size: 0.7em;
  margin: 25px 0 15px 0;
}
.css-main-card .invitation-date {
  font-size: 1.1em;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-family: var(--serif);
  line-height: 1.4;
}
.bold-accent {
  color: #F4E4C1; /* Soft gold/cream to match the screenshot text */
  font-weight: bold;
}
.css-details-card h3 {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 15px 0;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  font-family: var(--serif);
}
.css-details-card .css-details-text {
  font-size: 0.75em;
  line-height: 1.6;
}

img.mono {
  display: block;
  margin: 0 auto 1.5rem;
  height: auto;
}

/* ==========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered delays if you want multiple elements inside a section to animate sequentially */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }