/* ==========================================================================
   Nevoura — shared components
   Single source of truth for every piece reused across more than one
   Nevoura surface: the landing page ([nv_lp_contact]/[nv_lp_cta]), the
   quotation page opening/CTA panels, the dashboard badges/buttons, and
   the .nvcar-* invitation carousel/card component used on both the
   dashboard and public invitation pages. Every page that uses these
   classes enqueues this file so they can never drift apart again.

   Consolidated July 2026 — previously frontend.css (plugin)
   and invitation.css (theme) each carried their own copy of .nv-badge,
   .nv-btn, .nvcar-*, .nvp5-cta-btn, .nv-rule*, and .nv-opening-title
   with different values. Gold/brown (#b8925a) has been removed; the
   old "heritage" tier badge is ink-black like the other dark tiers.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Raleway:wght@300;400;600;700&display=swap");

/* ---------- Canonical color palette ----------
   The only color tokens Nevoura CSS should use. If a rule needs a color
   not listed here, that's a sign to reuse one of these rather than add
   a new one-off hex value. */
:root {
  --nv-ink: #0c0c0c;      /* primary text / dark surfaces */
  --nv-mid: #3a3a3a;      /* secondary dark (hover states) */
  --nv-muted: #909090;    /* tertiary text / disabled */
  --nv-border: #e4e4e4;   /* hairlines, dividers, input borders */
  --nv-off: #f8f7f5;      /* off-white section backgrounds */
  --nv-white: #ffffff;
  --nv-accent: #d7fe03;   /* brand lime — the only "highlight" color */
  --nv-success: #2d6a4f;
  --nv-success-bg: #e8f5ee;
  --nv-danger: #c0392b;
  --nv-danger-bg: #fdecea;
}

/* ---------- Eyebrow label ---------- */
.nv-eyebrow {
  display: inline-block;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nv-muted);
  margin: 0 0 14px;
}

/* ---------- Serif display heading ---------- */
.nv-opening-title {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  color: var(--nv-ink);
  margin: 0 0 16px;
}
.nv-opening-title em { font-style: italic; }

/* ---------- Rule divider (hairline + rotated dot) ---------- */
.nv-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 240px;
  margin: 0 auto;
}
.nv-rule::before,
.nv-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--nv-border);
}
.nv-rule-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--nv-ink); flex: none; transform: rotate(45deg);
}
.nv-rule--light::before,
.nv-rule--light::after { background: rgba(255,255,255,.2); }
.nv-rule--light .nv-rule-dot { background: var(--nv-white); }

/* ---------- Primary CTA button ----------
   The public-facing marketing/CTA button — landing page hero, contact
   form submit, quotation page links. Not to be confused with .nv-btn-sm,
   the small inline action-row button used in the dashboard. */
.nv-btn {
  display: inline-block;
  padding: 15px 36px;
  background: var(--nv-ink);
  color: var(--nv-white) !important;
  font-family: "Raleway", sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.nv-btn:hover {
  background: var(--nv-mid);
  transform: translateY(-2px);
  color: var(--nv-white) !important;
}

/* ---------- Outline / light button variants ----------
   Explicit :hover rules required here — otherwise the base .nv-btn:hover
   rule (higher specificity: class + pseudo-class beats a single class)
   hijacks these on hover and turns a lime button dark. */
.nv-btn--light {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--nv-accent); color: var(--nv-ink);
  border: none; border-radius: 30px; padding: 0 26px; height: 48px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: .82rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none !important;
  transition: transform .2s, filter .2s;
}
.nv-btn--light:hover {
  background: var(--nv-accent);
  color: var(--nv-ink) !important;
  filter: brightness(0.93);
  transform: translateY(-2px);
}
.nv-btn--ghost-light {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--nv-white);
  border: 1.5px solid rgba(255,255,255,.4); border-radius: 30px; padding: 0 26px; height: 48px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: .82rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none !important;
  transition: background .2s, color .2s, border-color .2s;
}
.nv-btn--ghost-light:hover {
  background: var(--nv-white);
  color: var(--nv-ink) !important;
  border-color: var(--nv-white);
}

/* ---------- Dark rounded hero panel ----------
   Used by the Contact page hero ("Let's Begin Your Story") and the
   Quotation page opening panel ("Request a Quotation") — identical
   box on both, so they can never end up a different size/shape again. */
.nv-lp-contact-hero {
  background: var(--nv-ink);
  border-radius: 28px;
  margin: 24px 12px 0;
  padding: clamp(64px, 9vw, 120px) 24px clamp(56px, 8vw, 96px);
  text-align: center;
}
.nv-lp-contact-hero__inner { max-width: 720px; margin: 0 auto; }
.nv-lp-contact-hero .nv-opening-title { color: var(--nv-white); margin: 14px 0 18px; }
.nv-lp-contact-hero__body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: .95rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Dark full-bleed CTA strip ----------
   Used by the sitewide "Ready to create your invitation?" strip and the
   Quotation page's "Browse our wedding packages" strip — same rules,
   so the same shape (full-bleed, no stray corner radius) everywhere. */
.nv-lp-cta {
  background: var(--nv-ink);
  padding: 96px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.nv-lp-cta__glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(215,254,3,.12) 0%, transparent 70%);
  pointer-events: none;
}
.nv-lp-cta .nv-opening-title { color: var(--nv-white); margin-bottom: 20px; }
.nv-lp-cta__body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem; color: rgba(255,255,255,.5); font-weight: 300;
  line-height: 1.7; max-width: 500px; margin: 0 auto 40px;
}
.nv-lp-cta__actions { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .nv-lp-contact-hero { margin: 12px 12px 0; }
  .nv-lp-cta { padding: 64px 24px; }
}


/* ==========================================================================
   Badges, buttons, and the .nvcar-* invitation carousel/card component.
   Moved here from frontend.css (plugin) and invitation.css (theme), which
   each had their own conflicting copy of these classes. This is now the
   only copy — both files must enqueue this stylesheet as a dependency.
   ========================================================================== */
/* ═══════════════════════════════════════════════════════
   BADGES, TAGS, STATUS
═══════════════════════════════════════════════════════ */
.nv-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Extracted from an inline style="" in class-shortcodes.php (dashboard
   card "CUSTOM" tag) — same background/color pair, just a real class now. */
.nv-badge-custom {
  background: #7b2d8b;
  color: #fff;
}

.nv-badge--published {
  background: rgba(45, 106, 79, 0.9);
  color: var(--nv-white);
}

.nv-badge--draft {
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.55);
}

.nv-badge--rsvp {
  background: var(--nv-gold);
  color: var(--nv-ink);
}

.nv-badge--sent {
  background: rgba(45, 106, 79, 0.9);
  color: var(--nv-white);
}

.nv-badge--unsent {
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.4);
}

.nv-badge--private {
  background: #2563eb;
  color: var(--nv-white);
}

.nv-badge--open {
  background: #059669;
  color: var(--nv-white);
}

.nv-badge--rsvp2 {
  background: var(--nv-ink);
  color: var(--nv-white);
}

.nv-badge--whatsapp {
  background: #25d366;
  color: var(--nv-white);
}

.nv-btn-sm {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--r-xs);
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
}

.nv-btn-sm--block {
  background: var(--nv-ink);
  color: var(--nv-white);
  border-color: var(--nv-ink);
}

.nv-btn-sm--block:hover {
  background: #333;
}

.nv-btn-sm--unblock {
  background: var(--nv-success);
  color: var(--nv-white);
  border-color: var(--nv-success);
}

.nv-btn-sm--unblock:hover {
  background: #1f5436;
}

.nv-btn-sm--send {
  background: transparent;
  color: var(--nv-ink);
  border-color: var(--nv-border);
}

.nv-btn-sm--send:hover {
  border-color: var(--nv-ink);
}

.nv-btn-sm--danger {
  background: transparent;
  color: var(--nv-danger);
  border-color: var(--nv-danger-bg);
}

.nv-btn-sm--danger:hover {
  background: var(--nv-danger);
  color: var(--nv-white);
  border-color: var(--nv-danger);
}


/* nvp5 */
.nvp5-cta-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 15px 36px;
  background: var(--nv-ink);
  color: var(--nv-white) !important;
  font-family: "Raleway", sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition:
    background 0.25s,
    transform 0.2s;
  cursor: pointer;
  border: none;
}

.nvp5-cta-btn:hover {
  background: var(--nv-mid);
  transform: translateY(-2px);
  color: var(--nv-white) !important;
}

.nvp5-cta-btn.nvp5-ghost {
  background: transparent;
  color: var(--nv-ink) !important;
  border: 1px solid var(--nv-ink);
}

.nvp5-cta-btn.nvp5-ghost:hover {
  background: var(--nv-ink);
  color: var(--nv-white) !important;
}


/* ---------- Invitation-theme carousel (.nvcar-*) ----------
   Card grid + filterable carousel used to pick an invitation theme,
   shown on the dashboard and on public-facing template listings. */
.nvcar-section {
  width: 100%;
  background: var(--nv-white);
  padding: 80px 0 72px;
  font-family: "Raleway", sans-serif;
  box-sizing: border-box;
  overflow: hidden;
}
.nvcar-hdr {
  text-align: center;
  padding: 0 40px;
  margin-bottom: 36px;
}
.nvcar-eyebrow {
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--nv-muted);
  display: block;
  margin-bottom: 16px;
  font-family: "Raleway", sans-serif;
}
.nvcar-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--nv-ink);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.nvcar-title em { font-style: italic; color: var(--nv-mid); }
.nvcar-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px auto 18px;
  max-width: 240px;
}
.nvcar-rule::before,
.nvcar-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--nv-border);
}
.nvcar-rule-dot {
  width: 5px; height: 5px;
  background: var(--nv-ink);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.nvcar-subtitle {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--nv-muted);
  letter-spacing: 0.03em;
  max-width: 460px;
  margin: 0 auto;
  font-family: "Raleway", sans-serif;
}

/* ---------- Filters (theme + tier) ---------- */
.nvcar-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 40px;
  margin-bottom: 36px;
}
.nvcar-filter {
  background: transparent;
  border: 1px solid var(--nv-border);
  color: var(--nv-muted);
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  transition: all 0.25s;
}
.nvcar-filter:hover { border-color: var(--nv-ink); color: var(--nv-ink); }
.nvcar-filter.active {
  background: var(--nv-ink);
  border-color: var(--nv-ink);
  color: var(--nv-white);
}
.nvcar-tier-row { margin-top: -20px; }
.nvcar-filter-tier {
  background: transparent;
  border: 1px solid var(--nv-border);
  color: var(--nv-muted);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  transition: all 0.25s;
}
.nvcar-filter-tier:hover { border-color: var(--nv-ink); color: var(--nv-ink); }
.nvcar-filter-tier.active {
  background: var(--nv-ink);
  border-color: var(--nv-ink);
  color: var(--nv-white);
}

/* ---------- Viewport, track, slides ---------- */
.nvcar-viewport {
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}
.nvcar-viewport::before,
.nvcar-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  z-index: 2;
  pointer-events: none;
}
.nvcar-viewport::before { left: 0; background: linear-gradient(to right, var(--nv-white), transparent); }
.nvcar-viewport::after { right: 0; background: linear-gradient(to left, var(--nv-white), transparent); }
.nvcar-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 18px;
  padding: 8px 40px 24px;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  width: max-content;
}
.nvcar-slide {
  flex-shrink: 0;
  width: 268px;
  display: flex;
}
.nvcar-slide.nvcar-hidden { display: none; }

/* ---------- Card ---------- */
.nvcar-card {
  width: 100%;
  background: var(--nv-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--nv-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nvcar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}
.nvcar-img {
  background-color: var(--nv-off);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  aspect-ratio: 4 / 3;
  position: relative;
  padding: 14px;
  border-bottom: 1px solid var(--nv-border);
  overflow: hidden;
  transition: background-position 0.6s ease;
}
.nvcar-card:hover .nvcar-img { background-position: center 20%; }
.nvcar-badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 20px;
  font-family: "Raleway", sans-serif;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.nvcar-badge--essential,
.nvcar-badge--other {
  background: rgba(255, 255, 255, 0.88);
  color: var(--nv-mid);
}
.nvcar-badge--signature,
.nvcar-badge--heritage {
  background: var(--nv-ink);
  color: var(--nv-white);
}
.nvcar-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.nvcar-name {
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--nv-ink);
  margin: 0 0 4px;
  line-height: 1.2;
}
.nvcar-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nvcar-price {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--nv-ink);
}
.nvcar-actions { display: flex; gap: 8px; }
.nvcar-btn {
  padding: 7px 14px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  font-family: "Raleway", sans-serif;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nvcar-btn--preview {
  background: var(--nv-white);
  color: var(--nv-mid);
  border: 1px solid var(--nv-border);
}
.nvcar-btn--preview:hover { border-color: var(--nv-ink); }
.nvcar-btn--buy {
  background: var(--nv-ink);
  color: var(--nv-white);
  border: 1px solid var(--nv-ink);
}
.nvcar-btn--buy:hover { background: var(--nv-mid); }

/* ---------- Nav bar (count, dots, arrows) ---------- */
.nvcar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px 0;
}
.nvcar-count {
  font-size: 0.54rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nv-muted);
  font-family: "Raleway", sans-serif;
}
.nvcar-dots { display: flex; gap: 6px; align-items: center; }
.nvcar-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--nv-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.nvcar-dot.active { background: var(--nv-ink); transform: scale(1.4); }
.nvcar-arrows { display: flex; gap: 8px; }
.nvcar-arrow {
  width: 44px; height: 44px;
  border: 1px solid var(--nv-ink);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--nv-ink);
  line-height: 1;
  transition: background 0.25s, color 0.25s;
  font-family: sans-serif;
}
.nvcar-arrow:hover { background: var(--nv-ink); color: var(--nv-white); }
.nvcar-arrow:disabled { opacity: 0.2; cursor: default; pointer-events: none; }

/* ---------- Bottom CTA ---------- */
.nvcar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding: 0 40px;
}
.nvcar-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: "Raleway", sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nvcar-cta-btn--solid {
  background: var(--nv-ink);
  color: var(--nv-white);
  border: 1px solid var(--nv-ink);
}
.nvcar-cta-btn--solid:hover { background: var(--nv-mid); color: var(--nv-white); }
.nvcar-cta-btn--ghost {
  background: transparent;
  color: var(--nv-muted);
  border: 1px solid var(--nv-border);
}
.nvcar-cta-btn--ghost:hover { border-color: var(--nv-ink); color: var(--nv-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .nvcar-section { padding: 60px 0 52px; }
  .nvcar-hdr,
  .nvcar-filters,
  .nvcar-nav,
  .nvcar-cta {
    padding-left: 20px;
    padding-right: 20px;
  }
  .nvcar-track { padding: 8px 20px 20px; }
  .nvcar-slide { width: 228px; }
}
@media (max-width: 400px) {
  .nvcar-slide { width: calc(100vw - 56px); }
}

/* .nvcar-bg-gold kept for backward compatibility with any existing markup
   still referencing it; now resolves to the lime accent, not gold/brown. */
.nvcar-bg-gold {
  background-color: var(--nv-accent);
}
