/* ============================================================
   JDW Mega Menu Widget — base styles
   All declarations are scoped under .jdw-menu-wrap so the
   widget plays nicely inside any Elementor template / theme.
   ============================================================ */

.jdw-menu-wrap{
  font-family:'Montserrat', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.jdw-menu-wrap *,
.jdw-menu-wrap *::before,
.jdw-menu-wrap *::after{ box-sizing:border-box; }

/* ---------- HEADER ---------- */
.jdw-menu-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:900;
  background:transparent;
  transition:background-color .5s ease, padding .5s ease, box-shadow .5s ease;
}
.jdw-menu-header.jdw-pos-sticky{ position:sticky; }
.jdw-menu-header.jdw-pos-static{ position:relative; }
.jdw-menu-header.jdw-scrolled{ /* box-shadow / bg set via Style tab */ }

.jdw-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:1600px;
  margin:0 auto;
  padding:24px clamp(20px,4vw,60px);
  gap:30px;
}

/* ---------- BRAND ---------- */
.jdw-brand{
  text-decoration:none;
  line-height:1.2;
  display:inline-block;
  color:inherit;
}
.jdw-brand-name{
  display:block;
  font-family:'Playfair Display', Georgia, serif;
  font-size:21px;
  font-weight:500;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#FFFFFF;
}
.jdw-brand-sub{
  display:block;
  font-family:'Montserrat', sans-serif;
  font-size:9px;
  letter-spacing:.4em;
  text-transform:uppercase;
  color:rgba(255,255,255,.7);
  margin-top:4px;
}

/* ---------- TOP LINKS ---------- */
.jdw-top-links{
  display:flex;
  gap:34px;
  align-items:center;
}
.jdw-top-links a{
  font-family:'Montserrat', sans-serif;
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(255,255,255,.85);
  text-decoration:none;
  transition:color .3s ease;
  white-space:nowrap;
}
.jdw-top-links a:hover{ color:#E5D3A8; }

/* ---------- MENU TOGGLE BUTTON ---------- */
.jdw-menu-toggle{
  background:none;
  border:0;
  cursor:pointer;
  padding:0;
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-family:'Montserrat', sans-serif;
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:#FFFFFF;
  transition:color .3s ease;
}
.jdw-bars{
  display:inline-flex;
  flex-direction:column;
  gap:4px;
}
.jdw-bars span{
  display:block;
  width:20px;
  height:1.5px;
  background:currentColor;
  transition:transform .3s ease;
}

/* ---------- MEGA MENU OVERLAY ---------- */
.jdw-mega-menu{
  position:fixed;
  inset:0;
  z-index:1000;
  background:#F7F4ED;
  transform:translateY(-100%);
  opacity:0;
  visibility:hidden;
  transition:transform .6s cubic-bezier(.7,0,.2,1), opacity .5s ease, visibility .5s ease;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.jdw-mega-menu.open{
  transform:translateY(0);
  opacity:1;
  visibility:visible;
}

.jdw-mega-close{
  position:absolute;
  top:30px;
  right:clamp(20px,4vw,60px);
  background:none;
  border:0;
  cursor:pointer;
  padding:8px 0;
  font-family:'Montserrat', sans-serif;
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:#2B2925;
  z-index:2;
}

.jdw-mega-inner{
  max-width:1400px;
  margin:0 auto;
  padding:100px clamp(20px,5vw,80px) 60px;
}

.jdw-mega-eyebrow{
  font-family:'Montserrat', sans-serif;
  font-size:10px;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:#A8884C;
  margin:0 0 40px;
}

.jdw-mega-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:clamp(30px,4vw,70px);
}

.jdw-mega-col h4{
  font-family:'Montserrat', sans-serif;
  font-size:10px;
  letter-spacing:.38em;
  text-transform:uppercase;
  color:#A8884C;
  font-weight:500;
  margin:0 0 14px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(168,136,76,.3);
}

.jdw-mega-col a{
  display:block;
  font-family:'Playfair Display', Georgia, serif;
  font-size:21px;
  font-weight:400;
  color:#2B2925;
  text-decoration:none;
  padding:8px 0;
  transition:color .3s ease;
  line-height:1.3;
}
.jdw-mega-col a:hover{ color:#A8884C; }

.jdw-mega-col a.sub{
  font-family:'Montserrat', sans-serif;
  font-size:15px;
  font-weight:400;
  letter-spacing:.04em;
  color:#6B6660;
  padding:6px 0 6px 18px;
  margin-left:2px;
  border-left:1px solid rgba(168,136,76,.3);
}
.jdw-mega-col a.sub:hover{ color:#A8884C; }

.jdw-mega-footer{
  margin-top:60px;
  padding-top:30px;
  border-top:1px solid rgba(168,136,76,.3);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
  font-family:'Montserrat', sans-serif;
  font-size:10px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:#6B6660;
}

/* ---------- BODY LOCK WHEN MENU OPEN ---------- */
body.jdw-menu-open{
  overflow:hidden;
}

/* ---------- MOBILE ---------- */
@media (max-width: 880px){
  .jdw-top-links{ display:none; }
  .jdw-mega-grid{ grid-template-columns:1fr; gap:30px; }
  .jdw-mega-col a{ font-size:19px; }
  .jdw-mega-col a.sub{ font-size:14px; }
  .jdw-mega-footer{ flex-direction:column; text-align:center; align-items:center; }
  .jdw-mega-inner{ padding-top:80px; }
}

@media (max-width: 480px){
  .jdw-brand-name{ font-size:17px; }
  .jdw-brand-sub{ font-size:8px; letter-spacing:.3em; }
  .jdw-menu-toggle-text{ font-size:10px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce){
  .jdw-mega-menu, .jdw-menu-header, .jdw-mega-col a, .jdw-top-links a, .jdw-menu-toggle{
    transition:none !important;
  }
}

/* ---------- FOCUS VISIBILITY ---------- */
.jdw-menu-wrap a:focus-visible,
.jdw-menu-wrap button:focus-visible{
  outline:2px solid #A8884C;
  outline-offset:3px;
}
