/* Waridi (rose) — bold, fashion-forward editorial: Vogue Weddings,
   luxury invitations, high-end magazine spreads.

   Pass 1: black/pink high-contrast identity used with intention
   (decorative oversized quotation mark, thick dividers, an asymmetrical
   Location layout, a dramatic dark RSVP) rather than color as
   disconnected blocks.

   Pass 2 (this file, part of the cross-theme "give each theme its own
   DNA" pass — Jacquemus/Off-White reference): pass 1 still used the same
   uniform card grids and masonry gallery every other theme had. This
   pass pushes the magazine-editorial identity structurally: the hero
   image gets an off-kilter diagonal clip-path crop instead of a hard
   rectangle (clip-path on .waridi-hero-bg clips its ::after overlay with
   it — no separate rule needed); the decorative quotation mark is bigger
   still, and the opening line of the couple's own Story copy becomes a
   real pull-quote (::first-line, no markup change); Details is an
   asymmetric magazine grid (every 3rd card spans two tracks, cycling
   regardless of item count, still safe on a sparse 1-2-event list); the
   nav wordmark reads with more presence. Gallery is reassigned to a
   magazine-collage CSS grid with deliberately mismatched spans — Waridi's
   own distinct gallery pattern (Dhahabu has classic masonry, Bahari
   horizontal-scroll, Kijani polaroid-scatter, no theme repeats another's).
   Markup mechanics (editMode contract, shared rsvpForm.ejs) are
   unchanged — presentation only. */

body.theme-waridi {
  --wr-blush: #F3B29B;
  --wr-white: #FFFFFF;
  --wr-charcoal: #121212;
  --wr-pink: #FF007F;
  --wr-pink-soft: rgba(255, 0, 127, .18);
  --wr-muted: #6E6660;

  --wr-space-xs: 12px;
  --wr-space-sm: 20px;
  --wr-space-md: 36px;
  --wr-space-lg: 64px;
  --wr-space-xl: 108px;

  --wr-h1: clamp(2.8rem, 1.6rem + 4.6vw, 5.4rem);
  --wr-h2: clamp(2rem, 1.6rem + 1.6vw, 2.9rem);
  --wr-h3: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  --wr-eyebrow: .74rem;

  --wr-shadow: 0 24px 56px -20px rgba(18, 18, 18, .35);
  --wr-shadow-sm: 0 10px 28px -14px rgba(18, 18, 18, .28);

  position: relative;
  font-family: var(--waridi-body-font);
  background: var(--wr-blush);
  color: var(--wr-charcoal);
  line-height: 1.7;
}
/* Curated font-pairing alternates (lib/themes.js's THEMES.waridi.
   fontPairings) — see dhahabu.css's identical comment for how this works. */
body.theme-waridi[data-font-pairing="playfair-inter"] {
  --waridi-header-font: "Playfair Display", Georgia, "Times New Roman", serif;
  --waridi-body-font: "Inter", "Helvetica Neue", Arial, sans-serif;
}
body.theme-waridi[data-font-pairing="dm-serif-karla"] {
  --waridi-header-font: "DM Serif Display", Georgia, serif;
  --waridi-body-font: "Karla", "Helvetica Neue", Arial, sans-serif;
}
body.theme-waridi h1, body.theme-waridi h2, body.theme-waridi h3 { font-family: var(--waridi-header-font); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
body.theme-waridi h1 { font-size: var(--wr-h1); line-height: .98; margin: 0; }
body.theme-waridi h2 { font-size: var(--wr-h2); line-height: 1.08; margin: 0 0 var(--wr-space-md); }
body.theme-waridi p { line-height: 1.8; }
body.theme-waridi .wedding-container { max-width: 1200px; padding: 0 40px; }
body.theme-waridi .wedding-section { padding: var(--wr-space-xl) 0; }
body.theme-waridi .wedding-section, body.theme-waridi .rsvp-section { scroll-margin-top: 84px; }
.waridi-centered { text-align: center; max-width: 680px; margin: 0 auto; }
.waridi-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--wr-space-xs);
  color: var(--wr-pink); font-size: var(--wr-eyebrow); font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
}
.waridi-eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--wr-pink); }

/* ============ SECTION NAV ============ */
.waridi-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--wr-charcoal);
}
.waridi-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.waridi-nav-brand { flex-shrink: 0; font-family: var(--waridi-header-font); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 1.2rem; color: var(--wr-charcoal); text-decoration: none; }
.waridi-nav-toggle { color: var(--wr-charcoal); }
.waridi-nav-links { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.waridi-nav-links::-webkit-scrollbar { display: none; }
.waridi-nav-links a {
  position: relative; padding: 23px 0; color: var(--wr-charcoal); text-decoration: none; white-space: nowrap;
  font-family: var(--waridi-header-font); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: color .2s ease;
}
.waridi-nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 17px; height: 3px; background: var(--wr-pink);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.waridi-nav-links a:hover, .waridi-nav-links a:focus-visible { color: var(--wr-pink); }
.waridi-nav-links a:hover::after, .waridi-nav-links a:focus-visible::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .waridi-nav-toggle { display: flex; }
  .waridi-nav-inner { padding: 0 20px; }
  .waridi-nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; max-height: 0; overflow: hidden;
    background: var(--wr-white); border-bottom: 3px solid var(--wr-charcoal); transition: max-height .3s ease;
  }
  .waridi-nav-links.is-open { max-height: 70vh; overflow-y: auto; }
  .waridi-nav-links a { padding: 16px 20px; border-top: 1px solid #e5e0da; }
  .waridi-nav-links a::after { display: none; }
}

/* Buttons */
.waridi-hero-cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 40px; background: var(--wr-pink); color: #fff;
  text-decoration: none; font-family: var(--waridi-header-font); font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  font-size: .78rem; border-radius: 2px; transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.waridi-hero-cta:hover, .waridi-hero-cta:focus-visible { background: var(--wr-charcoal); box-shadow: var(--wr-shadow-sm); transform: translateY(-2px); }
.waridi-hero-cta:focus-visible { outline: 2px solid var(--wr-pink); outline-offset: 3px; }

/* ============ HERO — full-screen image, dark overlay, large uppercase
   type, micro-animation stagger via data-reveal. A diagonal clip on the
   bottom edge (not a hard rectangle) is the "off-kilter fashion editorial
   crop" — clip-path on .waridi-hero-bg clips its ::after overlay with it
   automatically (clip-path clips the whole subtree, not just the element
   it's set on), so the gradient never spills past the cut. ============ */
.waridi-hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--wr-charcoal); }
.waridi-hero-bg {
  position: absolute; inset: 0; background: linear-gradient(135deg, var(--wr-pink), var(--wr-charcoal) 130%); background-size: cover; background-position: center;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.waridi-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .2) 55%, rgba(0, 0, 0, .1) 100%); }
.waridi-hero-overlay { position: relative; z-index: 1; width: 100%; padding: var(--wr-space-xl) 24px var(--wr-space-lg); color: #fff; text-align: center; }
.waridi-hero-overlay h1 { color: #fff; margin: 0 0 var(--wr-space-sm); }
.waridi-hero-tagline { font-size: 1.3rem; margin: 0 0 var(--wr-space-xs); font-style: italic; text-transform: none; letter-spacing: normal; font-family: var(--waridi-header-font); }
.waridi-hero-meta { font-size: .82rem; margin: 0 0 var(--wr-space-md); opacity: .88; text-transform: uppercase; letter-spacing: .2em; }

/* ============ OUR STORY — editorial split, an even more dominant
   decorative quotation mark, and the opening line of the couple's own
   copy set as a genuine pull-quote (::first-line, no markup change —
   the couple's real words get the magazine treatment instead of a
   generic decorative mark standing in for one). ============ */
.waridi-story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--wr-space-lg); align-items: center; }
.waridi-story-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 3px solid var(--wr-charcoal); display: block; }
.waridi-story-text { position: relative; }
.waridi-story-text::before {
  content: "\201C"; position: absolute; top: -.56em; left: -.08em; font-family: var(--waridi-header-font); font-size: 11rem;
  line-height: 1; color: var(--wr-pink-soft); z-index: 0; pointer-events: none;
}
.waridi-story-text > * { position: relative; z-index: 1; }
.waridi-story-text p { color: var(--wr-muted); font-size: 1.1rem; text-transform: none; letter-spacing: normal; }
.waridi-story-text p::first-line { font-family: var(--waridi-header-font); font-size: 1.55rem; color: var(--wr-charcoal); text-transform: uppercase; letter-spacing: .02em; }
.waridi-story-text:only-child { grid-column: 1 / -1; max-width: 720px; margin: 0 auto; text-align: center; }
.waridi-story-text:only-child::before { left: 50%; transform: translateX(-50%); }

/* ============ EVENT DETAILS — bold outlined cards in an asymmetric
   magazine grid: every 1st-of-3 card spans two tracks instead of a
   uniform grid, cycling so it still reads as intentional regardless of
   how many events a couple has (1 event or 8). Stays auto-fit so a sparse
   1-2-item list never looks broken — the span still resolves against
   however many tracks the container width actually created. ============ */
.waridi-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--wr-space-md); }
.waridi-details-card {
  padding: var(--wr-space-md) var(--wr-space-sm); border: 2px solid var(--wr-charcoal);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.waridi-details-card:nth-child(3n+1) { grid-column: span 2; }
.waridi-details-card:hover { border-color: var(--wr-pink); transform: translateY(-4px); box-shadow: var(--wr-shadow-sm); }
.waridi-details-card h3 { margin: 0 0 10px; font-size: var(--wr-h3); }
.waridi-details-card p { margin: 0 0 4px; color: var(--wr-muted); font-size: .95rem; text-transform: none; letter-spacing: normal; }

/* ============ SCHEDULE — editorial timeline, thick vertical divider. ============ */
.waridi-timeline { list-style: none; margin: var(--wr-space-md) auto 0; padding: 0; max-width: 720px; border-left: 4px solid var(--wr-charcoal); }
.waridi-timeline li { position: relative; padding: 0 0 var(--wr-space-lg) var(--wr-space-md); }
.waridi-timeline li:last-child { padding-bottom: 0; }
.waridi-timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--wr-pink); border: 3px solid var(--wr-white); }
.waridi-timeline-time { display: block; font-family: var(--waridi-header-font); font-weight: 700; color: var(--wr-pink); letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; margin-bottom: 4px; }
.waridi-timeline li b { font-family: var(--waridi-header-font); font-size: 1.3rem; letter-spacing: .02em; }
.waridi-timeline li p { margin: 6px 0 0; color: var(--wr-muted); text-transform: none; letter-spacing: normal; }

/* ============ LOCATION — asymmetrical: large image, offset floating
   venue card. ============ */
.waridi-location-inner { position: relative; display: grid; grid-template-columns: 1.5fr .9fr; align-items: end; gap: var(--wr-space-md); }
.waridi-location-image img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border: 3px solid var(--wr-charcoal); display: block; }
.waridi-location-card { position: relative; z-index: 1; margin-bottom: -32px; padding: var(--wr-space-md); background: var(--wr-white); border: 3px solid var(--wr-charcoal); box-shadow: var(--wr-shadow); }
.waridi-location-venue { font-size: 1.5rem; margin: 0 0 12px; }
.waridi-location-address { color: var(--wr-muted); text-transform: none; letter-spacing: normal; margin: 0 0 8px; }
.waridi-location-card .waridi-hero-cta { margin-top: var(--wr-space-sm); }
.waridi-location-card:only-child { grid-column: 1 / -1; max-width: 640px; margin: 0 auto; text-align: center; }

/* ============ REGISTRY — premium product cards, stronger hierarchy. ============ */
.waridi-registry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--wr-space-md); margin-top: var(--wr-space-lg); text-align: left; }
.waridi-registry-card { display: flex; flex-direction: column; height: 100%; border: 2px solid var(--wr-charcoal); overflow: hidden; background: var(--wr-white); transition: transform .25s ease, box-shadow .25s ease; }
.waridi-registry-card:hover { transform: translateY(-6px); box-shadow: var(--wr-shadow); }
.waridi-registry-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.waridi-registry-card-body { display: flex; flex-direction: column; flex: 1; padding: var(--wr-space-sm); }
.waridi-registry-card h3 { margin: 8px 0; font-size: 1.05rem; }
.waridi-registry-price { font-weight: 700; margin: 0 0 var(--wr-space-sm); text-transform: none; letter-spacing: normal; }
.waridi-registry-card .waridi-hero-cta { margin-top: auto; align-self: flex-start; padding: 10px 24px; font-size: .68rem; }

/* ============ RSVP — dramatic dark invitation, larger type, floating
   white card with a pink glow. ============ */
.waridi-rsvp { position: relative; background: var(--wr-charcoal); color: #fff; overflow: hidden; }
.waridi-rsvp::before {
  content: ""; position: absolute; top: 10%; left: 50%; width: 620px; height: 620px; transform: translateX(-50%);
  background: radial-gradient(circle, var(--wr-pink-soft), transparent 70%); pointer-events: none;
}
.waridi-rsvp h2 { color: #fff; font-size: clamp(2.2rem, 1.8rem + 1.8vw, 3.2rem); }
.waridi-rsvp .wedding-container > h2 { text-align: center; position: relative; z-index: 1; }
.waridi-rsvp .rsvp-intro { position: relative; z-index: 1; max-width: 480px; margin: 0 auto var(--wr-space-md); color: rgba(255, 255, 255, .78); text-align: center; }
.waridi-rsvp .rsvp-card { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: var(--wr-space-lg) var(--wr-space-md); background: #fff; color: var(--wr-charcoal); box-shadow: 0 30px 70px -20px rgba(255, 0, 127, .35); }
.waridi-rsvp .field label { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .7rem; }
.waridi-rsvp .field input, .waridi-rsvp .field select, .waridi-rsvp .field textarea, .waridi-rsvp input#rsvpNameSearch { border-radius: 2px; border: 1px solid #ddd; }
.waridi-rsvp .field input:focus, .waridi-rsvp .field select:focus, .waridi-rsvp .field textarea:focus, .waridi-rsvp input#rsvpNameSearch:focus {
  outline: none; border-color: var(--wr-pink); box-shadow: 0 0 0 3px var(--wr-pink-soft);
}
.waridi-rsvp .btn-rsvp-submit {
  width: 100%; padding: 16px; margin-top: 6px; border: none; border-radius: 2px; background: var(--wr-charcoal);
  color: #fff; font-family: var(--waridi-header-font); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.waridi-rsvp .btn-rsvp-submit:hover { background: var(--wr-pink); transform: translateY(-2px); }

/* ============ FAQ — thick dividers, animated expand/collapse
   (wedding-motion.js's initAccordions via data-animate-details). ============ */
.waridi-faq-list { max-width: 800px; margin: var(--wr-space-md) auto 0; text-align: left; border-top: 4px solid var(--wr-charcoal); }
.waridi-faq-list details { border-bottom: 4px solid var(--wr-charcoal); padding: var(--wr-space-sm) 0; }
.waridi-faq-list summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--waridi-header-font); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem;
}
.waridi-faq-list summary::-webkit-details-marker { display: none; }
.waridi-faq-list summary::after {
  content: "+"; flex-shrink: 0; width: 28px; height: 28px; background: var(--wr-charcoal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: transform .3s ease, background .25s ease;
}
.waridi-faq-list details[open] summary::after { transform: rotate(135deg); background: var(--wr-pink); }
.waridi-faq-list p { margin: var(--wr-space-sm) 0 0; color: var(--wr-muted); max-width: 680px; text-transform: none; letter-spacing: normal; }

/* ============ GALLERY — magazine collage: Waridi's own distinct pattern
   (Dhahabu has classic masonry, Bahari horizontal-scroll, Kijani
   polaroid-scatter — no theme repeats another's). A real CSS grid with
   deliberately mismatched spans, cycling every 6 photos so it stays
   asymmetric regardless of how many a couple uploads, not a uniform
   masonry column. Shared lightbox (data-lightbox) works unchanged. ============ */
.waridi-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: var(--wr-space-sm); }
.waridi-gallery-grid figure { margin: 0; border: 2px solid var(--wr-charcoal); overflow: hidden; cursor: zoom-in; }
.waridi-gallery-grid figure:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.waridi-gallery-grid figure:nth-child(6n+4) { grid-column: span 2; }
.waridi-gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.waridi-gallery-grid figure:hover img { transform: scale(1.06); }
.waridi-gallery-grid figcaption { padding: 10px 4px 2px; font-size: .8rem; text-align: center; color: var(--wr-muted); text-transform: none; letter-spacing: normal; }

@media (max-width: 900px) {
  .waridi-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}
@media (max-width: 760px) {
  body.theme-waridi .wedding-container { padding: 0 22px; }
  .waridi-story-inner { grid-template-columns: 1fr; gap: var(--wr-space-md); }
  .waridi-story-text::before { font-size: 7.5rem; }
  .waridi-location-inner { grid-template-columns: 1fr; }
  .waridi-location-card { margin-bottom: 0; margin-top: -40px; margin-left: 16px; margin-right: 16px; }
  .waridi-details-grid { grid-template-columns: 1fr; }
  .waridi-details-card:nth-child(3n+1) { grid-column: span 1; }
  .waridi-gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .waridi-gallery-grid figure:nth-child(6n+1), .waridi-gallery-grid figure:nth-child(6n+4) { grid-column: span 1; grid-row: span 1; }
}
