/* ══════════════════════════════════════════════════════
   VISUALAURA — Services mega-menu (additive nav enhancement)
   Luxury editorial dropdown under "Services". Desktop floating
   panel + mobile accordion. transform/opacity/blur-led.
   ══════════════════════════════════════════════════════ */

/* ── Trigger wrapper (keeps existing nav-link untouched) ── */
.nav-has-mega { position: relative; display: inline-flex; align-items: center; }
.nav-link-services { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { width: 11px; height: 11px; transition: transform .35s var(--ease); opacity: .7; }
.nav-has-mega:hover .nav-caret,
.nav-has-mega:focus-within .nav-caret,
.nav-has-mega.mega-open .nav-caret { transform: rotate(180deg); opacity: 1; }

/* ── Floating panel ── */
.mm {
  position: fixed; top: calc(var(--nav-h) - 6px); left: 50%; z-index: 1100;
  width: min(960px, calc(100vw - 48px));
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(12px); filter: blur(7px);
  transition: opacity .3s var(--ease), transform .34s var(--ease), filter .3s var(--ease), visibility .3s;
}
/* Invisible hover bridge so moving from the link to the panel never drops :hover */
.mm::before { content: ''; position: absolute; top: -22px; left: 0; right: 0; height: 26px; }
.nav-has-mega:hover .mm,
.nav-has-mega:focus-within .mm,
.nav-has-mega.mega-open .mm {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0); filter: blur(0);
}

.mm-inner {
  display: grid; grid-template-columns: 1.32fr 1fr; gap: 0;
  background: linear-gradient(180deg, #FDFAF4, var(--beige) 100%);
  border: 1px solid rgba(201, 169, 110, .34); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(110,20,35, .22), 0 12px 32px rgba(110,20,35, .12), inset 0 0 0 1px rgba(255, 255, 255, .5);
}

/* ── Left: categories grid ── */
.mm-left { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 26px 24px; }
.mm-cat { padding: 12px 12px 14px; border-radius: 14px; transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.mm-cat:hover { background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .22); }
.mm-cat-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: .58rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 9px;
}
.mm-cat-title::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.mm-item {
  position: relative; display: flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: .86rem; font-weight: 400; color: var(--text-m);
  padding: 6px 8px; border-radius: 8px; text-decoration: none;
  transition: color .28s var(--ease), transform .3s var(--ease), background .28s var(--ease);
}
.mm-item .mm-arrow { width: 13px; height: 13px; opacity: 0; transform: translateX(-6px); transition: opacity .28s var(--ease), transform .3s var(--ease); }
.mm-item:hover { color: var(--accent); transform: translateX(4px); }
.mm-item:hover .mm-arrow { opacity: 1; transform: translateX(0); }
/* Active service (current page) */
.mm-item.active { color: var(--primary); font-weight: 500; }
.mm-item.active .mm-arrow { opacity: 1; transform: translateX(0); color: var(--accent); }
.nav-link-services.active { color: var(--primary); }
.nav-link-services.active::after { width: 60%; }

/* ── Right: premium content panel ── */
.mm-right {
  position: relative; padding: 28px 26px; display: flex; flex-direction: column;
  background: linear-gradient(165deg, rgba(110,20,35, .05), rgba(201, 169, 110, .1));
  border-left: 1px solid rgba(201, 169, 110, .26);
}
.mm-eyebrow { font-family: var(--font-body); font-size: .56rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.mm-h { font-family: var(--font-head); font-size: 1.62rem; font-weight: 400; line-height: 1.14; letter-spacing: -.01em; color: var(--text); margin-bottom: 10px; }
.mm-h em { font-style: italic; color: var(--primary); }
.mm-p { font-family: var(--font-body); font-size: .82rem; font-weight: 300; line-height: 1.7; color: var(--text-m); margin-bottom: 20px; }

.mm-cards { display: flex; gap: 10px; margin-bottom: 22px; }
.mm-card {
  flex: 1; display: block; text-decoration: none; border-radius: 12px; overflow: hidden;
  background: var(--white); border: 1px solid rgba(201, 169, 110, .26);
  box-shadow: 0 6px 18px rgba(110,20,35, .07);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.mm-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(110,20,35, .18); border-color: rgba(201, 169, 110, .5); }
.mm-thumb { height: 52px; position: relative; overflow: hidden; }
.mm-thumb.t1 { background: linear-gradient(135deg, #6E1423, #8a2433); }
.mm-thumb.t2 { background: linear-gradient(135deg, #6E1423, #C9A96E); }
.mm-thumb.t3 { background: linear-gradient(135deg, #2b2440, #6E1423); }
.mm-thumb::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, .28), transparent 60%); }
.mm-thumb span { position: absolute; left: 8px; bottom: 6px; width: 26px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.mm-card b { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .02em; color: var(--text); padding: 9px 10px; }

.mm-all {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 50px;
  background: linear-gradient(135deg, var(--primary-l, #8a2433), var(--primary) 60%);
  box-shadow: 0 10px 26px rgba(110,20,35, .26);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.mm-all svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.mm-all:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(110,20,35, .34); }
.mm-all:hover svg { transform: translateX(4px); }

/* Hide the floating mega-menu wherever the desktop nav-links are hidden */
@media (max-width: 900px) { .mm { display: none; } .nav-caret { display: none; } }

/* ── Mobile accordion (inside #mobileMenu) ── */
.m-acc-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 400; color: var(--text);
  padding: 12px 16px; border-radius: 10px; letter-spacing: .01em;
  transition: background .2s, color .2s;
}
.m-acc-trigger:hover { background: var(--beige-d); color: var(--primary); }
.m-acc-trigger .m-acc-caret { width: 16px; height: 16px; color: var(--accent); transition: transform .4s var(--ease); flex-shrink: 0; }
.m-acc.open .m-acc-trigger .m-acc-caret { transform: rotate(180deg); }
.m-acc.open .m-acc-trigger { color: var(--primary); }

.m-acc-panel { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.m-acc.open .m-acc-panel { max-height: 760px; }
.m-acc-inner { padding: 4px 16px 10px; }
.m-acc-cat-title {
  display: block; font-family: var(--font-body); font-size: .56rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin: 14px 0 6px;
}
.m-acc-item {
  display: block; font-family: var(--font-body); font-size: .95rem; font-weight: 400; color: var(--text-m);
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  transition: background .2s, color .2s, padding .25s var(--ease);
}
.m-acc-item:hover, .m-acc-item:active { background: var(--beige-d); color: var(--primary); padding-left: 18px; }
.m-acc-item.active { color: var(--primary); font-weight: 600; background: rgba(201, 169, 110, .12); }

@media (prefers-reduced-motion: reduce) {
  .mm { transition: opacity .2s, visibility .2s; filter: none; transform: translateX(-50%); }
  .nav-has-mega:hover .mm, .nav-has-mega:focus-within .mm, .nav-has-mega.mega-open .mm { transform: translateX(-50%); }
  .m-acc-panel { transition: none; }
}

/* ══════════════════════════════════════════════════════
   Shared Visualaura burgundy theme (opt-in via body.br).
   Loaded globally so any page can adopt the brand palette
   without pulling in page-specific stylesheets. Mirrors the
   tokens branding.css already sets for the service pages.
   ══════════════════════════════════════════════════════ */
body.br {
  --primary:   #6E1423;
  --primary-d: #54101b;
  --primary-l: #8a2433;
  --border:    rgba(110,20,35,.14);
  --shadow-sm: 0 2px 12px rgba(110,20,35,.10);
  --shadow-md: 0 8px 32px rgba(110,20,35,.14);
  --shadow-lg: 0 20px 60px rgba(110,20,35,.18);
}
body.br .section-badge { background: rgba(110,20,35,.08); border-color: rgba(110,20,35,.18); }
body.br .btn-primary { box-shadow: 0 4px 20px rgba(110,20,35,.34); }
body.br .btn-primary:hover { box-shadow: 0 8px 32px rgba(110,20,35,.45); }
body.br .nav-toggle:hover { background: #54101b; }
body.br .nav-circle { box-shadow: 0 3px 12px rgba(110,20,35,.08); }
body.br .nav-circle:hover { box-shadow: 0 8px 20px rgba(110,20,35,.14); }
body.br .footer-socials a:hover { background: #6E1423; border-color: #6E1423; }

/* ══════════════════════════════════════════════════════
   Visualaura nav/footer chrome on the wedding demo themes.
   Keeps each theme's romantic CONTENT untouched, but unifies
   the shared navigation + footer to the brand burgundy by
   scoping a token override to the nav/menu subtrees only.
   ══════════════════════════════════════════════════════ */
body.vxchrome .navbar,
body.vxchrome .mobile-menu {
  --primary:   #6E1423;
  --primary-d: #54101b;
  --primary-l: #8a2433;
}
body.vxchrome .navbar .btn-primary { box-shadow: 0 4px 20px rgba(110,20,35,.34); }
body.vxchrome .nav-toggle:hover { background: #54101b; }
body.vxchrome .footer-socials a:hover { background: #6E1423; border-color: #6E1423; }
