/* jpayten.com — Menu & Nav CSS
   External file — loaded in <head> on every page.
   ============================================================ */

/* ── Hamburger ──────────────────────────────────────────────── */
.disrupt-menu{
  background:none;border:none;cursor:pointer;
  width:44px;height:44px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;padding:0;position:relative;z-index:600;
}
.disrupt-menu svg{overflow:visible}
.bar{transition:transform .38s cubic-bezier(.4,0,.2,1),opacity .25s ease;transform-origin:center}
.disrupt-menu:hover .bar-1{transform:rotate(14deg) scaleX(.65)}
.disrupt-menu:hover .bar-2{transform:rotate(-9deg)}
.disrupt-menu:hover .bar-3{transform:rotate(6deg) scaleX(1.35)}
.disrupt-menu.is-open .bar-1{transform:translateY(10px) rotate(45deg)}
.disrupt-menu.is-open .bar-2{opacity:0;transform:scaleX(0)}
.disrupt-menu.is-open .bar-3{transform:translateY(-10px) rotate(-45deg)}

/* ── Overlay shell ──────────────────────────────────────────── */
.menu-overlay{
  position:fixed;inset:0;z-index:500;
  background:rgba(7,6,15,.97);
  backdrop-filter:blur(32px);-webkit-backdrop-filter:blur(32px);
  opacity:0;pointer-events:none;
  transition:opacity .42s cubic-bezier(.4,0,.2,1);
  /* Flex column: header bar | desktop body | footer bar */
  display:flex;
  flex-direction:column;
}
.menu-overlay.open{opacity:1;pointer-events:all}

/* ── Close button ───────────────────────────────────────────── */
.menu-close-btn{
  position:absolute;top:14px;right:18px;
  background:none;border:none;cursor:pointer;
  color:rgba(245,243,255,.28);transition:color .2s;
  width:44px;height:44px;
  display:flex;align-items:center;justify-content:center;
  z-index:600;
}
.menu-close-btn:hover{color:var(--phi)}
.menu-close-btn svg{width:22px;height:22px}

/* ── Header bar (top, fixed height) ────────────────────────── */
.mo-header{
  flex-shrink:0;
  display:flex;align-items:center;
  padding:0 60px;height:72px;
  border-bottom:1px solid rgba(139,92,246,.12);
}
.mo-logo{
  text-decoration:none;display:flex;align-items:baseline;
  font-family:var(--sans);font-weight:700;font-size:1.3rem;
  letter-spacing:-.04em;color:var(--t);line-height:1;
}
.mo-logo .jp{color:var(--t)}
.mo-logo .dot{color:var(--phi);font-size:1.7rem;line-height:.6;margin-left:1px}

/* ── Desktop body (fills all remaining height) ──────────────── */
.menu-desktop{
  flex:1;                    /* takes all height between header and footer */
  display:flex;
  flex-direction:row;
  min-height:0;              /* allows flex children to shrink properly */
}

/* ── Left column ────────────────────────────────────────────── */
.menu-left{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;  /* push links to BOTTOM */
  padding:0 60px 52px;
  overflow-y:auto;
}

/* ── Nav links ──────────────────────────────────────────────── */
.menu-links{
  display:flex;flex-direction:column;
  list-style:none;gap:0;
}
.menu-link{
  font-family:var(--serif);font-style:italic;
  font-size:clamp(2rem,4.2vw,4rem);
  color:rgba(245,243,255,.22);text-decoration:none;
  line-height:1.08;letter-spacing:-.025em;
  transition:color .2s ease,letter-spacing .2s ease,padding-left .2s ease;
  display:block;padding:3px 0;
}
.menu-link:hover,.menu-link.active{color:var(--phi);letter-spacing:.01em;padding-left:8px}
.menu-link.active{color:var(--pk)}

/* Separator rule */
.menu-rule{width:48px;height:1px;background:rgba(139,92,246,.3);margin:14px 0;transition:width .4s ease .1s}
.menu-overlay.open .menu-rule{width:80px}

/* Specialties expander */
.menu-link-expand{cursor:pointer;user-select:none;display:flex;align-items:center;gap:14px}
.expand-arrow{
  width:20px;height:20px;border:1.5px solid rgba(139,92,246,.35);
  display:inline-flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:transform .3s ease,border-color .2s,background .2s;margin-top:4px;
}
.expand-arrow svg{width:8px;height:8px;color:var(--phi);transition:transform .3s ease}
.menu-link-expand.expanded .expand-arrow{background:rgba(139,92,246,.18);border-color:var(--phi)}
.menu-link-expand.expanded .expand-arrow svg{transform:rotate(180deg)}
.menu-link-expand.expanded{color:var(--phi)}

/* Sub-items */
.menu-sub{
  display:grid;grid-template-columns:repeat(3,auto);gap:0 28px;
  max-height:0;overflow:hidden;opacity:0;
  transition:max-height .45s cubic-bezier(.4,0,.2,1),opacity .35s ease,margin .3s ease;
  padding-left:2px;
}
.menu-sub.open{max-height:300px;opacity:1;margin-top:8px;margin-bottom:6px}
.menu-sub-link{
  font-family:var(--sans);font-weight:400;font-size:.73rem;
  letter-spacing:.1em;color:rgba(245,243,255,.3);
  text-decoration:none;padding:4px 0;text-transform:uppercase;
  transition:color .18s ease,padding-left .18s ease;white-space:nowrap;
}
.menu-sub-link:hover{color:var(--phi);padding-left:4px}

/* ── Entrance animations ─────────────────────────────────────── */
.menu-overlay.open .menu-link,
.menu-overlay.open .menu-rule,
.menu-overlay.open .menu-link-expand{animation:menuIn .55s cubic-bezier(.34,1.05,.64,1) both}
.menu-overlay.open .ml-1{animation-delay:.05s}
.menu-overlay.open .ml-2{animation-delay:.10s}
.menu-overlay.open .ml-3{animation-delay:.15s}
.menu-overlay.open .ml-r{animation-delay:.18s}
.menu-overlay.open .ml-4{animation-delay:.22s}
.menu-overlay.open .ml-5{animation-delay:.27s}
@keyframes menuIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}

/* ── Right column ────────────────────────────────────────────── */
.mo-actions{
  width:320px;flex-shrink:0;
  border-left:1px solid rgba(139,92,246,.1);
  display:flex;flex-direction:column;
  justify-content:space-between;  /* CTA top, Say Hello + Follow Me bottom */
  padding:40px 40px;
}
.mo-section{display:flex;flex-direction:column;gap:10px}
.mo-bottom{display:flex;flex-direction:column;gap:0}
.mo-section-label{
  font-family:var(--sans);font-size:.6rem;font-weight:600;
  letter-spacing:.18em;text-transform:uppercase;
  color:rgba(245,243,255,.28);margin:0 0 4px;
}

/* CTA button */
.mo-cta{
  font-family:var(--sans);font-weight:700;font-size:.82rem;
  letter-spacing:.06em;text-transform:uppercase;
  padding:13px 20px;background:var(--p);color:#fff;
  text-decoration:none;
  transition:background .22s ease,transform .22s ease,box-shadow .22s ease;
  box-shadow:0 0 32px rgba(139,92,246,.32);
  display:block;text-align:center;
}
.mo-cta:hover{background:var(--phi);transform:translateY(-2px);box-shadow:0 0 52px rgba(167,139,250,.48)}

/* Divider */
.mo-divider{width:100%;height:1px;background:rgba(139,92,246,.12);margin:20px 0}

/* Contact links */
.mo-contact-link{
  font-family:var(--sans);font-size:.78rem;
  color:rgba(245,243,255,.45);text-decoration:none;
  transition:color .18s ease;line-height:1.6;display:block;
}
.mo-contact-link:hover{color:var(--phi)}

/* WhatsApp row */
.mo-wa{
  display:flex;align-items:center;gap:10px;
  font-family:var(--sans);font-size:.76rem;
  color:rgba(245,243,255,.4);text-decoration:none;
  transition:color .2s ease;margin-top:6px;
}
.mo-wa:hover{color:#25d366}
.mo-wa-icon{
  width:30px;height:30px;border:1px solid rgba(245,243,255,.14);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:border-color .2s,background .2s;
}
.mo-wa:hover .mo-wa-icon{border-color:#25d366;background:rgba(37,211,102,.08)}
.mo-wa-label{font-weight:500;letter-spacing:.02em}

/* Social icons */
.mo-socials{display:flex;gap:7px;flex-wrap:wrap;margin-top:2px}
.mo-social-icon{
  width:34px;height:34px;
  border:1px solid rgba(139,92,246,.22);
  display:flex;align-items:center;justify-content:center;
  color:rgba(245,243,255,.35);text-decoration:none;
  transition:color .18s ease,border-color .18s ease,background .18s ease;
  flex-shrink:0;
}
.mo-social-icon:hover{color:var(--phi);border-color:var(--p);background:rgba(139,92,246,.12)}

/* Right-col animations */
.menu-overlay.open .moa-top{animation:menuIn .55s .20s cubic-bezier(.34,1.05,.64,1) both}
.menu-overlay.open .moa-bot{animation:menuIn .55s .28s cubic-bezier(.34,1.05,.64,1) both}

/* ── Footer bar (bottom, fixed height) ──────────────────────── */
.mo-footer{
  flex-shrink:0;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 60px;height:56px;
  border-top:1px solid rgba(139,92,246,.1);
}
.mo-footer-loc{
  font-size:.67rem;letter-spacing:.1em;text-transform:uppercase;
  color:rgba(245,243,255,.2);font-family:var(--sans);
}
.mo-footer-tag{
  font-size:.67rem;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(245,243,255,.16);font-family:var(--sans);margin:0;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media(max-width:768px){
  .menu-desktop{flex-direction:column}
  .menu-left{padding:20px 24px 28px;justify-content:flex-start}
  .menu-link{font-size:clamp(1.8rem,8vw,2.8rem)}
  .mo-header{padding:0 24px}
  .mo-actions{
    width:100%;border-left:none;border-top:1px solid rgba(139,92,246,.1);
    flex-direction:row;flex-wrap:wrap;padding:14px 24px;
    justify-content:flex-start;align-items:center;gap:12px;
  }
  .mo-section-label{display:none}
  .mo-bottom{flex-direction:row;flex-wrap:wrap;gap:10px;align-items:center}
  .mo-divider{display:none}
  .mo-footer{padding:0 24px;height:48px}
  .menu-sub{grid-template-columns:repeat(2,auto);gap:0 20px}
}
@media(max-width:400px){
  .menu-link{font-size:clamp(1.6rem,8vw,2.2rem)}
  .menu-sub{grid-template-columns:1fr}
}
